diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2025-04-05 12:22:48 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2025-05-12 18:43:40 +0200 |
| commit | cbfe8a20c76582b0f2532e94fbd7ea9c80f25455 (patch) | |
| tree | 71353f2a474dafcb90bf0b9783e9c36d99d9a522 | |
| parent | fix(install): skip tier 4 parsers when installing and updating (diff) | |
| download | nvim-treesitter-cbfe8a20c76582b0f2532e94fbd7ea9c80f25455.tar nvim-treesitter-cbfe8a20c76582b0f2532e94fbd7ea9c80f25455.tar.gz nvim-treesitter-cbfe8a20c76582b0f2532e94fbd7ea9c80f25455.tar.bz2 nvim-treesitter-cbfe8a20c76582b0f2532e94fbd7ea9c80f25455.tar.lz nvim-treesitter-cbfe8a20c76582b0f2532e94fbd7ea9c80f25455.tar.xz nvim-treesitter-cbfe8a20c76582b0f2532e94fbd7ea9c80f25455.tar.zst nvim-treesitter-cbfe8a20c76582b0f2532e94fbd7ea9c80f25455.zip | |
feat(html): use gsub for mimetype lookup
| -rw-r--r-- | SUPPORTED_LANGUAGES.md | 1 | ||||
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 2 | ||||
| -rw-r--r-- | plugin/filetypes.lua | 2 | ||||
| -rw-r--r-- | plugin/query_predicates.lua | 27 | ||||
| -rw-r--r-- | runtime/queries/html_tags/injections.scm | 30 | ||||
| -rw-r--r-- | tests/query/injections/html/test-html-injections.html | 6 |
6 files changed, 33 insertions, 35 deletions
diff --git a/SUPPORTED_LANGUAGES.md b/SUPPORTED_LANGUAGES.md index 8eac31b73..dbb2934bf 100644 --- a/SUPPORTED_LANGUAGES.md +++ b/SUPPORTED_LANGUAGES.md @@ -29,6 +29,7 @@ Language | Tier | Queries | Maintainer [blade](https://github.com/EmranMR/tree-sitter-blade) | unstable | `HFIJ ` | @calebdw [blueprint](https://gitlab.com/gabmus/tree-sitter-blueprint) | unstable | `H J ` | @gabmus [bp](https://github.com/ambroisie/tree-sitter-bp)[^bp] | unstable | `HFIJL` | @ambroisie +[brightscript](https://github.com/ajdelcimmuto/tree-sitter-brightscript) | unstable | `HFIJ ` | @ajdelcimmuto [c](https://github.com/tree-sitter/tree-sitter-c) | unstable | `HFIJL` | @amaanq [c_sharp](https://github.com/tree-sitter/tree-sitter-c-sharp) | unstable | `HF JL` | @amaanq [caddy](https://github.com/opa-oz/tree-sitter-caddy) | unmaintained | `HFIJ ` | @opa-oz diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 263985ecf..01c78a63f 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -153,8 +153,8 @@ return { }, brightscript = { install_info = { + revision = '48ce1687125c6dfefcc7a1bef19fa0f0f00426cc', url = 'https://github.com/ajdelcimmuto/tree-sitter-brightscript', - files = { 'src/parser.c' }, }, maintainers = { '@ajdelcimmuto' }, tier = 2, diff --git a/plugin/filetypes.lua b/plugin/filetypes.lua index 82b2900ac..feb1194a6 100644 --- a/plugin/filetypes.lua +++ b/plugin/filetypes.lua @@ -22,7 +22,7 @@ local filetypes = { haskell_persistent = { 'haskellpersistent' }, idris = { 'idris2' }, janet_simple = { 'janet' }, - javascript = { 'javascriptreact', 'ecma', 'jsx', 'js' }, + javascript = { 'javascriptreact', 'ecma', 'ecmascript', 'jsx', 'js' }, javascript_glimmer = { 'javascript.glimmer' }, linkerscript = { 'ld' }, latex = { 'tex' }, diff --git a/plugin/query_predicates.lua b/plugin/query_predicates.lua |
