Skip to content

Commit

Permalink
Merge pull request NixOS#18 from danbornside/intpolation-special
Browse files Browse the repository at this point in the history
match some specials
  • Loading branch information
LnL7 authored Apr 24, 2018
2 parents 4703808 + 2f70461 commit 7b8f784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax/nix.vim
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ syn region nixComment start=+/\*+ end=+\*/+ contains=nixTodo,@Spell
syn region nixInterpolation matchgroup=nixInterpolationDelimiter start="\${" end="}" contained contains=@nixExpr,nixInterpolationParam

syn match nixSimpleStringSpecial /\\["nrt\\$]/ contained
syn match nixInterpolationSpecial /''['$]/ contained
syn match nixInterpolationSpecial /''['$\\]/ contained

syn region nixSimpleString matchgroup=nixStringDelimiter start=+"+ skip=+\\"+ end=+"+ contains=nixInterpolation,nixSimpleStringSpecial
syn region nixString matchgroup=nixStringDelimiter start=+''+ skip=+''['$]+ end=+''+ contains=nixInterpolation,nixInterpolationSpecial
syn region nixString matchgroup=nixStringDelimiter start=+''+ skip=+''['$\\]+ end=+''+ contains=nixInterpolation,nixInterpolationSpecial

syn match nixFunctionCall "[a-zA-Z_][a-zA-Z0-9_'-]*"

Expand Down

0 comments on commit 7b8f784

Please sign in to comment.