mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 01:13:30 +00:00
[vim-syntax] fix clause head expression
This was reported and reviewed by Paul already.
vim/syntax/mercury.vim:
Fix spelling mistake and make the mercuryClauseHead expression
recognise digits.
This commit is contained in:
@@ -241,7 +241,7 @@ if has("conceal") && (!exists("mercury_no_conceal") || !mercury_no_conceal)
|
||||
syn match mercuryOperator "`x`" conceal cchar=×
|
||||
syn match mercuryOperator "//" conceal cchar=÷
|
||||
|
||||
" unforunately, Vim does not allow different conceal colours,
|
||||
" unfortunately, Vim does not allow different conceal colours,
|
||||
" so these are not concealed by default
|
||||
if exists("mercury_conceal_logical") && mercury_conceal_logical
|
||||
syn match mercuryImplication "=>" conceal cchar=⇒
|
||||
@@ -279,7 +279,7 @@ syn region mercuryForeignModList matchgroup=mercuryBracket start='\[' end=']'
|
||||
\ mercuryDelimiter,@mercuryComments,@mercuryFormatting,
|
||||
\ mercuryString,mercuryOperator,mercuryBlock
|
||||
|
||||
syn match mercuryClauseHead /\v^[a-zA-Z_]+[(]@=/
|
||||
syn match mercuryClauseHead /\v^[a-z][a-zA-Z0-9_]*[(]@=/
|
||||
|
||||
if !exists("mercury_no_highlight_foreign") || !mercury_no_highlight_foreign
|
||||
" Basic syntax highlighting for foreign code
|
||||
|
||||
Reference in New Issue
Block a user