elm.vim icon indicating copy to clipboard operation
elm.vim copied to clipboard

Highlight multiline strings

Open Alloyed opened this issue 8 years ago • 1 comments

Elm supports long strings ala python

"normal string"
"""loooong string"""

The official docs underdefine what escapes, if any, are supported but I don't think it'd be wrong to just crib the builtin python syntax region and get rid of the singe-quote ''' variant:

syn region  pythonString
      \ start=+[uU]\=\z('''\|"""\)+ end="\z1" keepend
\ contains=pythonEscape,pythonSpaceError,pythonDoctest,@Spell

Alloyed avatar May 23 '16 17:05 Alloyed

TIL

amcsi avatar May 23 '16 20:05 amcsi