Skip to content

Commit

Permalink
Highlight !include as Error
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Jan 6, 2024
1 parent 70c08fc commit c2c785b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions syntax/just.vim
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ syn match justImport /\v^import%(%(\s|\\\n)*\?|%(\s|\\\n)+['"]@=)/ transparent
\ contains=justImportStatement,justOptionalFile
syn match justImportStatement '^import' contained

syn match justOldInclude "^!include\s.*$" contains=justOldIncludeDirective
syn match justOldIncludeDirective "^!include" contained
syn match justOldInclude "^!include"

syn match justModule /\v^mod%(%(\s|\\\n)*\?)?%(\s|\\\n)+\h\k*\s*%($|%(\s|\\\n)+['"]@=)/
\ transparent contains=justModStatement,justName,justOptionalFile
Expand Down Expand Up @@ -272,8 +271,7 @@ hi def link justLineContinuation Special
hi def link justLineLeadingSymbol Special
hi def link justModStatement Keyword
hi def link justName Identifier
hi def link justOldInclude PreProc
hi def link justOldIncludeDirective Underlined
hi def link justOldInclude Error
hi def link justOperator Operator
hi def link justOptionalFile Conditional
hi def link justParameterError Error
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/deprecated_obsolete.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<span class="Underlined">!include</span><span class="PreProc"> subdir/some.just</span>
<span class="Error">!include</span> subdir<span class="Operator">/</span>some.just

<span class="Statement">set</span> <span class="Underlined">windows-powershell</span>
<span class="Statement">set</span> <span class="Underlined">windows-powershell</span><span class="Operator">:=</span><span class="Boolean">false</span>
Expand Down

0 comments on commit c2c785b

Please sign in to comment.