aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
Commit message (Collapse)AuthorAge
...
* Avoid extra indentation on Go switches (#6817)Daniel Martí2023-04-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unlike other languages, in Go, switches themselves are not indented; it's just each case body which is indented by one level: switch foo { case "bar": baz() } As such, we shouldn't `@indent` for type_switch_statement nor expression_switch_statement, as otherwise inserted lines show up as: switch foo { // inserted with "o" case "bar": // inserted with "o" baz() } With the fix, the inserted lines are indented properly: switch foo { // inserted with "o" case "bar": // inserted with "o" baz() } I also verified that indentation on selects similarly works well. Thanks to Triton171 for helping with this fix.
* Fix go locals query for var_spec identifiersMatthew Toohey2023-04-16
|
* Add standalone language support for `just` (#6453)VuiMuich2023-04-14
| | | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Fix python highlights to support single character and alphanumeric constant ↵Farzin2023-04-14
| | | | identifier (#6751)
* Add DTD language support (#6644)Michael2023-04-12
| | | | - Added syntax highlighting for the DTD subset of the XML spec. - Included .dtd and .ent as common file extensions
* Add OpenCL tree-sitter and LSP config (#6473)lefp2023-04-12
|
* feat(languages): Support markdoc (#6432)Matouš Dzivjak2023-04-12
| | | | | | Add basic support for [markdoc](https://markdoc.dev/). For language server, see: https://github.com/markdoc-extra/markdoc-ls For tree sitter, see: https://github.com/markdoc-extra/tree-sitter-markdoc
* Highlight C/C++ escape sequences (#6724)Farzin2023-04-12
|
* tree-sitter(haskell): use quasiquoters as an injection point (#6474)Clément Delafargue2023-04-12
| | | | | Similar to tagged templates in JS, quasiquoters allow to embed external languages in haskell, so it makes sense to treat them as an injection point.
* Update tree-sitter-haskell (#6317)Ollie Charles2023-04-12
|
* Initial Cabal language support (#6485)Ollie Charles2023-04-12
|
* Update tree-sitter-git-commit (#6692)Michael Davis2023-04-10
| | | | Trailers are now supported, for example 'Co-authored-by' or 'Signed-off-by'. Commits are also now recognized in message bodies.
* Update gleam grammar (#6641)Arnar2023-04-09
|
* Add support for Robot Framework files (#6611)karei2023-04-07
| | | | | * Add support for Robot Framework files * Run docgen
* Update Ruby Highlights (#6587)Danillo Melo2023-04-06
| | | | | | | * update ruby highlights * Updated SQL injection.scm * Move private, public, protected to builtin methods
* Add textobject queries for Julia (#6588)Clara Hobbs2023-04-06
| | | | | * Add textobjects queries for Julia * Update docs for Julia textobject queries
* Add Hurl Support (#6450)Erasin Wang2023-04-06
| | | | | | | | | * Add http Support It's like [vscode-restclient](https://github.com/Huachao/vscode-restclient) - https://github.com/erasin/tree-sitter-http/tree/main/tests * Add Hurl Support
* Add indents.scm for Julia (#6490)Clara Hobbs2023-03-31
| | | | | * Add indents.scm for Julia * Update documentation for new indent support
* Add injection for markdown strings (#6489)Clara Hobbs2023-03-31
|
* Update tree-sitter-git-commit, add comment textobject (#6439)Michael Davis2023-03-27
| | | | | | | The update includes a fix for comments in commit messages where there was no space separating the '#' and the comment text. The comment textobject can be useful occasionally to jump to the summary part of the commit edit message.
* Initial Nim language support (#6123)JJ2023-03-26
|
* Add language support for rego (OpenPolicyAgent) (#6415)Juan C. Müller2023-03-26
|
* Add vhdl language support (#5826)Tom Burdick2023-03-25
| | | | | | | Simple highlight query file with keywords and builtin types matching. Many VHDL types however are defined in std libraries which do not currently get matched on. This is because the grammar doesn't consider them builtin types.
* Add theme keys for (un)checked markup list items (#6434)Erasin Wang2023-03-25
|
* Add `switch_statement` to ecma indents (#6369)Thor Adam2023-03-21
|
* Add initial Smithy support (#6370)zetashift2023-03-21
|
* Add language support for Cap’n Proto format (#6325)angelodlfrtr2023-03-18
|
* Update queries for makefile (#6339)Erasin Wang2023-03-17
| | | | | - update variable and ref as paramter - add target as constant - add inject for shell_text
* Improve tree-sitter queries for vlang (#6279)Erasin Wang2023-03-15
| | | | | | - Update hightlight - add indents - add textobject - add injections
* Update gdscript highlight (#6311)Erasin Wang2023-03-15
| | | | | | - add gdscript2 type.builtin - add gdscript2 keyword 'await' - update label for more note_path - update function and parmeter
* Update Nix highlightsMichael Davis2023-03-14
| | | | | | * Switch nix grammar repository location to the new repo. The author has transferred the repository to 'nix-community'. * Capture ':' and '...' as 'punctuation.delimiter'.
* Update Erlang highlightsMichael Davis2023-03-14
| | | | | | | * Macros that start with underscore were incorrectly marked as 'comment.unused' rather than 'keyword.directive' due to an ordering issue of those two patterns. * Recognize escripts as Erlang by the shebang.
* queries/php: add missing keywords `unset` and `clone` (#6299)Ivan2023-03-14
|
* fix: C++ namespace indentationBlaž Hrastnik2023-03-11
| | | | fixes #6235
* Also highlight unchecked variants of the sqlx query methods (#6256)Maxicarlos082023-03-10
|
* queries/php: add injections for regex and sql injection (#6250)Ivan2023-03-10
|
* Improved yuck highlighting (and parser), and introduced a tag.builtin scope ↵Philipp Mildenberger2023-03-10
| | | | (#6242)
* Update highlights for golang (#6204)Erasin Wang2023-03-08
| | | | | | - update tree-sitter-go - refine keywords - set package as namespace - add label
* Update highlight for PHP (#6203)Erasin Wang2023-03-08
| | | | | - update tree-sitter-php - add basic types, operator - refine keyword
* Update highlight for ecma/js/ts (#6205)Erasin Wang2023-03-06
|
* Update queries for godot4 (#6186)Erasin Wang2023-03-05
|
* Add support for reStructuredText (#6180)Roberto Vidal2023-03-05
|
* feat(prql): add prql support (#6126)Matthias Q2023-03-03
|
* Extend the set of tags highlighted in comments (#6143)István Donkó2023-03-03
|
* Add elm treesitter textobjects (#6084)Mathieu Agopian2023-02-25
|
* feat: add nasm language (#6068)Matthew Toohey2023-02-25
|
* Add language support for sway (#6023)Sophie Dankel2023-02-25
|
* Improve markdown highlights and add latex injection (#6100)Matthias Deiml2023-02-25
|
* feat(sql): MariaDB/MySQL syntax, Apache Hive syntax, unified builtin ↵LeoniePhiline2023-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functions, floats, negative integers (#6041) * feat(sql): MariaDB/MySQL table options `COLLATE`, `CHARACTER SET`, `ENGINE` Upstream changes: https://github.com/DerekStride/tree-sitter-sql/compare/286e10c5bc5d1703ee8f9afb351165a9a6182be1...30e15d45dceb24ea51acf81ee7d75d81567b6e02 * feat(sql): Optional `COLUMN` in `ALTER TABLE` Upstream changes: https://github.com/DerekStride/tree-sitter-sql/compare/30e15d45dceb24ea51acf81ee7d75d81567b6e02...c508e6044adf4298d7b321f966c90cbe32d75d23 * feat(sql): Add `UNSIGNED` support, refactor numeric types Upstream changes: https://github.com/DerekStride/tree-sitter-sql/compare/c508e6044adf4298d7b321f966c90cbe32d75d23...2d1d5b68a1e11796dd0f4f068fc3e9d7e59fe9f7 * feat(sql): Add support for Apache Spark create Hive table Upstream changes: https://github.com/DerekStride/tree-sitter-sql/compare/2d1d5b68a1e11796dd0f4f068fc3e9d7e59fe9f7...7be06f4d5eabace883dd45959c13dc740f1f1b98 * feat(sql): Add support for signed and unsigned floating point literals Upstream changes: https://github.com/DerekStride/tree-sitter-sql/pull/92/files * feat(sql): Add interval data type Upstream changes: https://github.com/DerekStride/tree-sitter-sql/compare/13d375dea377bae5f235176fae97a50ba584db54...7b4bcd0394d759a660f470a4f07aa08b7b130d8c * feat(sql): Add support for DROP INDEX Upstream changes: https://github.com/DerekStride/tree-sitter-sql/compare/7b4bcd0394d759a660f470a4f07aa08b7b130d8c...173d6feb5064defb7d0ef742a4fc7c6d763a2df0 * feat(sql): Add MariaDB/MySQL `ALTER TABLE ... CHANGE|MODIFY ... [FIRST|AFTER]` syntax Upstream changes: https://github.com/DerekStride/tree-sitter-sql/compare/173d6feb5064defb7d0ef742a4fc7c6d763a2df0...0d7a121b2a08fb37109f7be1cc6654443cad661f * feat(sql): Extract fields from Apache Hive storage location and row format Upstream changes: https://github.com/DerekStride/tree-sitter-sql/compare/0d7a121b2a08fb37109f7be1cc6654443cad661f...d2f0f6695fffa4ec1c81fc2060eddf83161f9ee3 * feat(sql): Fix unified built-in functions Upstream changes: https://github.com/DerekStride/tree-sitter-sql/compare/d2f0f6695fffa4ec1c81fc2060eddf83161f9ee3...e4e43ba742a2ee88cbb24dbf305a7daadd583873 * feat(sql): Support negative integers Upstream changes: https://github.com/DerekStride/tree-sitter-sql/compare/e4e43ba742a2ee88cbb24dbf305a7daadd583873...3a3f92b29c880488a08bc2baaf1aca6432ec3380 * rework(sql): Improve `@constant.numeric` regex
* Add GNU gettext PO grammar (#5996)Erasin2023-02-20
|