From 185c2a0c85b005dd6ebf62fe8cc6c081a81fbc48 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 22 Aug 2024 15:28:45 +0200 Subject: fix(pkgs/tree-sitter-yts): Support dashes in flags --- pkgs/by-name/tr/tree-sitter-yts/grammar.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pkgs/by-name/tr/tree-sitter-yts/grammar.js') 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), -- cgit 1.4.1