summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/query_predicates.lua
AgeCommit message (Collapse)Author
2022-09-12fix(fold): don't include whitespace end regionsLewis Russell
Some languages that are difficult to parse via Treesitter may incorrectly include whitespace lines at the end of regions. This can makes the calculated folds sub-optimal. To recitfy, use a custom directive (trim), to calculate the range with the trailing whitespace lines removed. Note this only works if the region end column is 0. Also added folds for Make.
2022-06-26feat(markdown)!: switch to split parser (#3048)Matthias Deiml
* switch to split markdown parser with separate block and inline parsers to improve performance * add exclude_children! directive (useful for something like Injected markdown incorrectly highlights indented docstrings #2212) * split markdown queries into block and inline ones and add the injection for inline into block grammar * add include_dir option to parser configs (needed because the two grammars don't live in the repos root directory) BREAKING CHANGE: downstream queries need to be adapted to new parser
2021-11-02chore: fix typosDundar Göc
2021-08-03fix: query_predicate - nthMunif Tanjim
2021-07-09downcase predicate: nil protectionSantos Gallegos
get_node_text could be nil if the range is invalid. With https://github.com/neovim/neovim/pull/15030/ this fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1531
2021-07-04Use stylua for autoformat code (#1480)Santos Gallegos
2021-06-04downcase! directive to use with ruby injectionsderekstride
``` (#downcase! "language") ``` downcase! will ensure the metadata value for the specified key will be downcased. If the value is a node, it will downcase the text specified by the node. ``` (#downcase! @node "key") ``` You can also namespace the key with a specific capture, similar to how you can call `(#set! @node "key" "value")`
2021-01-20Fix "nth?" predicateStephan Seitz
2020-12-18fix(query): add noop handler for make-rangeSteven Sojka
2020-11-18fix(predicates): Fix #446: highlight property only if not a methodStephan Seitz
2020-11-18feat(predicates): extend has-ancestor?, add has-parent?/has-type?Stephan Seitz
2020-10-26Add virtual range for creating node-like objects from multiple nodesStephan Seitz
2020-09-03preds: declare set! predicateThomas Vigouroux
2020-08-16feat(highlights): add is predicateSteven Sojka
2020-08-14fix: refactor after upstream refactorThomas Vigouroux
2020-07-31feat(predicates): add adjacent predicateSteven Sojka
2020-07-27Predicates: remove function unlispify and use Lisp names directlyStephan Seitz
2020-07-27Add predicate: has-ancestor?Stephan Seitz
2020-07-27Add predicates moduleStephan Seitz