Skip to content

Commit

Permalink
Allow hyphens in command option keys
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Dec 30, 2019
1 parent d3fbe37 commit 5f42df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/sile.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ syntax match sileCommand "\\\h[a-zA-Z0-9:-]\+" nextgroup=sileOptions,sileContent
syntax match sileBlock "\\begin\>\|\\end\>" nextgroup=sileBlockOptions,sileBlockCommand
syntax match sileScript "\\script\>" nextgroup=sileOptions,sileInlineLua

syntax match sileOption "\h[a-zA-Z0-9]\+" contained nextgroup=sileOptionDef
syntax match sileOption "\h[a-zA-Z0-9-]\+" contained nextgroup=sileOptionDef
syntax match sileOptionDef "=" contained nextgroup=sileOptionQuoted,sileOptionVal
syntax match sileOptionVal '[^,\]"]\+' contained contains=sileBoolean nextgroup=sileOptionSep
syntax match sileOptionSep "," contained
Expand Down

0 comments on commit 5f42df8

Please sign in to comment.