about summary refs log tree commit diff
path: root/misc/vim/syntax
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2009-01-28T12·14+0000
committerMarc Weber <marco-oweber@gmx.de>2009-01-28T12·14+0000
commit6f8c96d12399b747b5f41b5211a635d2801247c8 (patch)
tree6fba14224f340a4afea2716b91cd592520b04cd1 /misc/vim/syntax
parent110606d470c22928a505296b694751c7d17a5c03 (diff)
vim syntax: support for indented strings ('' .. '')
Diffstat (limited to 'misc/vim/syntax')
-rw-r--r--misc/vim/syntax/nix.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/vim/syntax/nix.vim b/misc/vim/syntax/nix.vim
index 6e47a2171424..ddddea5f0596 100644
--- a/misc/vim/syntax/nix.vim
+++ b/misc/vim/syntax/nix.vim
@@ -21,12 +21,14 @@ syn match nixFuncArg "\zs\w\+\ze\s*:"
 syn region nixStringParam start=+\${+ end=+}+
 syn region nixMultiLineComment start=+/\*+ skip=+\\"+ end=+\*/+
 syn match  nixEndOfLineComment "#.*$"
-syn region nixString      start=+"+ skip=+\\"+ end=+"+ contains=nixStringParam
+syn region nixStringIndented start=+''+ skip=+'''\|''${\|"+ end=+''+ contains=nixStringParam
+syn region nixString         start=+"+ skip=+\\"+ end=+"+ contains=nixStringParam
 
 hi def link nixKeyword       Keyword
 hi def link nixConditional   Conditional
 hi def link nixBrace         Special
 hi def link nixString        String
+hi def link nixStringIndented String
 hi def link nixBuiltin       Special
 hi def link nixStringParam   Macro
 hi def link nixMultiLineComment Comment