diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-22 15:28:45 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-22 15:28:45 +0200 |
commit | 185c2a0c85b005dd6ebf62fe8cc6c081a81fbc48 (patch) | |
tree | 5ea38d5abcf452260a08b99dabd8af2a118a86ef /pkgs/by-name/tr/tree-sitter-yts/grammar.js | |
parent | fix(pkgs/yt): Update to v1.0.0 (diff) | |
download | nixos-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.js | 12 |
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), |