Skip to content

Commit b947ba7

Browse files
committed
Support the quoted string with extension point shortcut.
1 parent 71a9285 commit b947ba7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

syntax/ocaml.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ syn match ocamlMTDef "=\s*\w\(\w\|'\)*\>"hs=s+1,me=s+1 skipwhite skipempty ne
168168

169169
" Quoted strings
170170
syn region ocamlString matchgroup=ocamlQuotedStringDelim start="{\z\([a-z_]*\)|" end="|\z1}" contains=@Spell
171+
syn region ocamlString matchgroup=ocamlQuotedStringDelim start="{%[a-z_]\+\(\.[a-z_]\+\)\?\( \z\([a-z_]\+\)\)\?|" end="|\z1}" contains=@Spell
171172

172173
syn keyword ocamlKeyword and as assert class
173174
syn keyword ocamlKeyword constraint else

0 commit comments

Comments
 (0)