diff options
Diffstat (limited to '')
-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), |