about summary refs log tree commit diff stats
path: root/pkgs/by-name/tr/tree-sitter-yts/grammar.js
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-22 15:28:45 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-22 15:28:45 +0200
commit185c2a0c85b005dd6ebf62fe8cc6c081a81fbc48 (patch)
tree5ea38d5abcf452260a08b99dabd8af2a118a86ef /pkgs/by-name/tr/tree-sitter-yts/grammar.js
parentfix(pkgs/yt): Update to v1.0.0 (diff)
downloadnixos-config-185c2a0c85b005dd6ebf62fe8cc6c081a81fbc48.tar.gz
nixos-config-185c2a0c85b005dd6ebf62fe8cc6c081a81fbc48.zip
fix(pkgs/tree-sitter-yts): Support dashes in flags
Diffstat (limited to 'pkgs/by-name/tr/tree-sitter-yts/grammar.js')
-rw-r--r--pkgs/by-name/tr/tree-sitter-yts/grammar.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/by-name/tr/tree-sitter-yts/grammar.js b/pkgs/by-name/tr/tree-sitter-yts/grammar.js
index 27972419..8a9d61fe 100644
--- a/pkgs/by-name/tr/tree-sitter-yts/grammar.js
+++ b/pkgs/by-name/tr/tree-sitter-yts/grammar.js
@@ -16,12 +16,12 @@ module.exports = grammar({
               /-\w='[^']*'/,
               /-\w="[^"]*"/,
 
-              /--\w+ [^\s]+/,
-              /--\w+ '[^']*'/,
-              /--\w+ "[^"]*"/,
-              /--\w+=[^\s]+/,
-              /--\w+='[^']*'/,
-              /--\w+="[^"]*"/,
+              /--\w[\w-]+ [^\s]+/,
+              /--\w[\w-]+ '[^']*'/,
+              /--\w[\w-]+ "[^"]*"/,
+              /--\w[\w-]+=[^\s]+/,
+              /--\w[\w-]+='[^']*'/,
+              /--\w[\w-]+="[^"]*"/,
               ),
     id: ($) => /[a-z0-9]+/,
     title: ($) => seq($._q, /[^"]+/, $._q),