Add single_string highlighter

This commit is contained in:
Dheepak Krishnamurthy 2018-09-28 03:41:10 -06:00
parent 93f913705a
commit 1549c18b8e

View File

@ -13,6 +13,7 @@ hook global BufCreate .*\.nim(s|ble)? %{
add-highlighter shared/nim regions
add-highlighter shared/nim/code default-region group
add-highlighter shared/nim/single_string region "'" (?<!\\)(\\\\)*' fill string
add-highlighter shared/nim/double_string region '"' (?<!\\)(\\\\)*" fill string
add-highlighter shared/nim/triple_string region '"""' '"""' fill string
add-highlighter shared/nim/comment region '#?#\[' '\]##?' fill comment