~sircmpwn/hare.vim

syntax: highlight invalid attributes as errors

Signed-off-by: Sebastian <sebastian@sebsite.pw>
syntax: add hex float constants

Signed-off-by: Sebastian <sebastian@sebsite.pw>
syntax: disallow leading 0 in number constants

Signed-off-by: Sebastian <sebastian@sebsite.pw>
syntax: add never

Signed-off-by: Sebastian <sebastian@sebsite.pw>
syntax: add opaque

Signed-off-by: Sebastian <sebastian@sebsite.pw>
syntax: remove cap

This reverts commit 447f32f6d9940bff2cbc2406f96556ad89916682.
syntax: add cap

Signed-off-by: Sebastian <sebastian@sebsite.pw>
1134cd8a — Max Schillinger 4 months ago
compiler: update error format

`:make` did not work. I guess, the output of `hare build` has changed
and this plugin is not up to date.

Signed-off-by: Max Schillinger <maxschillinger@web.de>
syntax: remove char

Signed-off-by: Sebastian <sebastian@sebsite.pw>
syntax: hi def link hareAttribute PreProc
highlight align() builtin
syntax: reorganize const, def, export, static

See commit d2dd8c098fa7b294235c4d9fb27ca526f6ad9fe4

Cc: Amelia Clarke <me@rsaihe.dev>
syntax: fix multi-line raw string literals
Adjust modeline

Signed-off-by: Amelia Clarke <me@rsaihe.dev>
ftplugin: conform to Vim style

This commit makes a few minor adjustments to the Hare filetype plugin to
conform to the style used by Vim itself. Specifically, the preferred
indentation and textwidth settings for Hare are now gated behind
'g:hare_recommended_style' but are still set by default. Additionally,
the required 'b:undo_ftplugin' has been added.

Besides minor adjustments to formatting and the addition of 'comments'
and 'suffixesadd', '/' has been added to 'formatoptions', meaning that
comments are only continued by 'o' and 'O' if the comment is at the
beginning of the line. When the comment is at the end of a statement,
comments will not be continued:

	defer free(buf); // This comment will not be continued.

Signed-off-by: Amelia Clarke <me@rsaihe.dev>
Update headers to conform to style used by Vim

Signed-off-by: Amelia Clarke <me@rsaihe.dev>
syntax: improve use statement

Use statements are now highlighted correctly in all cases, including
when there is leading whitespace or when they take up multiple lines,
including comments inside.

Signed-off-by: Amelia Clarke <me@rsaihe.dev>
syntax: remove '..' and '...' operators

Signed-off-by: Amelia Clarke <me@rsaihe.dev>
syntax: allow blocks to be folded

Signed-off-by: Amelia Clarke <me@rsaihe.dev>
syntax: add highlighting for [[...]] in comments

Signed-off-by: Amelia Clarke <me@rsaihe.dev>
Next