Skip to content

Commit 2ebddd0

Browse files
authored
Merge pull request #70 from paurkedal/extension-quote
Support the quoted string with extension point shortcut.
2 parents 71a9285 + b947ba7 commit 2ebddd0

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)