on master help sign in
Manually convert Nix.sublime-syntax
commit01846fad307024109348f98c1b4c83cb785a53f7 authorsharkdp <davidpeter@web.de> dateMon 9 Dec 2019, 23:37 (7 years ago) parent18255f9
1 file changed+2−2
assets/syntaxes/Nix.sublime-syntax+2−2
assets/syntaxes/Nix.sublime-syntax+2−2
@@ -140,7 +140,7 @@ contexts:
140140 push:
141141 - match: '(?=([\])};]|\b(else|then)\b))'
142142 pop: true
143− - match: '(?=(\s*\}|\"|\binherit\b|\b[a-zA-Z\_][a-zA-Z0-9\_\''\-]*(\s*\.|\s*=[^=])))'
143+ - match: '(?=(\s*\}|\"|\binherit\b|\b[a-zA-Z\_][a-zA-Z0-9\_\''\-]*(\s*\.|\s*=[^=])|\$\{[a-zA-z0-9\_\''\-]+\}(\s*\.|\s*=[^=])))'
144144 push:
145145 - match: '(?=([\])};,]|\b(else|then)\b))'
146146 pop: true
@@ -563,7 +563,7 @@ contexts:
563563 pop: true
564564 - include: string-quoted
565565 - include: expression-cont
566− - match: '([a-zA-Z0-9\.\_\-\+]*(\/[a-zA-Z0-9\.\_\-\+]+)+)'
566+ - match: '(~?[a-zA-Z0-9\.\_\-\+]*(\/[a-zA-Z0-9\.\_\-\+]+)+)'
567567 captures:
568568 0: string.unquoted.path.nix
569569 push: