[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:
Sebastian Godelet
2015-04-14 10:13:47 +08:00
parent 42b610f825
commit 4859fb82d6

View File

@@ -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