aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #585 from fffed/patch-1Steven Sojka2020-10-271-0/+21
|\ | | | | js: add query for @parameter
| * update comment case for simplefied notationfffed2020-10-271-1/+1
| |
| * add destructuring variationsfffed2020-10-271-0/+17
| |
| * remove destructuring from @parameterfffed2020-10-161-4/+0
| |
| * Add additional queries for @parameter for jsfffed2020-10-151-0/+8
| |
* | Add virtual range for creating node-like objects from multiple nodesStephan Seitz2020-10-263-0/+151
| |
* | feat(install): add "maintained" option to only install maintained parsersStephan Seitz2020-10-265-5/+16
| | | | | | | | | | | | Unmaintained parsers only give users little benefit but take sometimes a a long time to install (e.g. Markdown, Julia, Haskell parser). We could recommend to only install maintained parsers by default.
* | show [treesitter] during installkyazdani422020-10-241-1/+1
| |
* | feat: add TSConfigInfo to display current configStephan Seitz2020-10-241-0/+18
| | | | | | | | https://nvim-treesitter.zulipchat.com/#narrow/stream/252271-general/topic/Random/near/210929394
* | use for first identifier in jsx nested_identifierdavidroeca2020-10-231-3/+3
| |
* | handle jsx components with dot in themdavidroeca2020-10-231-1/+10
| |
* | Merge pull request #612 from JoosepAlviste/masterSteven Sojka2020-10-231-3/+3
|\ \ | | | | | | fix(javascript): fix constant variable highlight
| * | fix(javascript): fix constant variable highlightJoosep Alviste2020-10-231-3/+3
|/ / | | | | | | | | | | The `@constant` query gets overwritten by the `@constructor` query. They both query for variables starting with an uppercase letter, but the `@constant` query took effect first.
* | Remove textobjects from contributingStephan Seitz2020-10-231-28/+0
| |
* | [docgen] Update README.mdGithub Actions2020-10-221-1/+0
| | | | | | | | skip-checks: true
* | fix(markdown): remove from parser listThomas Vigouroux2020-10-221-6/+7
| | | | | | | | Bye bye markdown
* | fix(markdown): disable highlightingThomas Vigouroux2020-10-221-1/+1
| | | | | | | | | | | | The markdown scanner errors out far too often to be usable, disabling it by default would avoid many issues until those assertion errors are fixed.
* | LanguageTree: don't error when injecting a languageSantos Gallegos2020-10-211-1/+0
| |
* | fix(languagetree): avoid language self-injectionThomas Vigouroux2020-10-211-7/+14
| | | | | | | | | | | | This avoids some stack overflows when a language includes itself. This is a temporary solution, and will be addressed later when actually managing our own parsers.
* | Add lua params (#605)Chinmay Dalal2020-10-211-0/+4
| | | | | | | | | | | | | | * Add lua params * Fix * Remove redundant outer
* | [docgen] Update README.mdGithub Actions2020-10-201-0/+1
| |
* | Add verilog/systemverilog queriesZeger Van de Vannet2020-10-202-0/+227
| |
* | feat(ocamllex): use injections for ocamlPau Ruiz Safont2020-10-202-2/+6
| |
* | Fix #595, #583: do not set defaults for highlights that have no default ↵Stephan Seitz2020-10-191-3/+0
| | | | | | | | highlighting
* | Remove textobjects from built_in_query_groupsStephan Seitz2020-10-191-1/+1
| |
* | update docskiyan422020-10-192-110/+65
| |
* | Treesitter indentkiyan422020-10-195-55/+79
| | | | | | | | also fixes the memoize_by_buf_tick function
* | start indent modulekiyan422020-10-193-0/+79
| |
* | docs(highlights): document LanguageTree.Thomas Vigouroux2020-10-192-0/+2
| |
* | feat(languagetree): implement language treeThomas Vigouroux2020-10-195-12/+192
| | | | | | | | | | | | | | Allow the LanguageTree to be used as an option for highlighting. Co-authored-by: Santos Gallegos <stsewd@protonmail.com> Co-authored-by: Yazdani Kiyan <yazdani.kiyan@protonmail.com>
* | readme: add nvim-treesitter-contextRom Grk2020-10-191-0/+2
| |
* | feat(folds): add catch_clause to js foldsSam Bernheim2020-10-161-0/+1
| |
* | feat: add more javascript foldssbernehim42020-10-161-0/+3
| |
* | Fix: avoid overwriting tables in insert_to_pathStephan Seitz2020-10-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following query will result in matches with only one node though it requires two nodes to be a match. ```scheme (function_definition (comment) @function.inner.start body: (block) @function.inner) ``` Why? First `insert_to_path` is called for `@function.inner.start` which will result int the following table. ```lua { function = { inner = { start { node } } } } ``` `insert_to_path` will overwrite the result ```lua { function = { inner = { node } } } ``` Related #552
* | Remove get_parser logickiyan422020-10-161-7/+1
| | | | | | | | | | upstream now handles parsers by itself, so we don't need to do it in this repo.
* | Update README requirements for parser download/compilationStephan Seitz2020-10-161-2/+2
| |
* | feat: Add more lua foldsMike2020-10-151-2/+3
|/ | | | Add repeat_statement to lua folds
* C++ highlights: highlight all kinds of optional parametersStephan Seitz2020-10-131-2/+2
| | | | declarator can be a identifier, a reference or a pointer
* fix(highlights): use new highlighter interfaceThomas Vigouroux2020-10-131-2/+2
|
* query: remove unnecessary query parsingThomas Vigouroux2020-10-121-84/+5
|
* highlight: use new highlighter interfaceThomas Vigouroux2020-10-121-1/+1
|
* Ruby highlights: reset highlight on interpolationStephan Seitz2020-10-121-0/+3
| | | | @TravonteD
* Explicitly check for cterm and gui values for fgAkin Sowemimo2020-10-111-7/+8
| | | | If a user hasn't set either we default to NONE
* Add a check to ensure the fg attribute existsAkin Sowemimo2020-10-111-1/+11
| | | | before setting the value
* Don't change the background highlightsAkin Sowemimo2020-10-111-1/+1
| | | | | treesitter highlighting is colouring the characters in the foreground so there's no need to touch the highlighting of the background
* fix cterm fg and bg errorAkin Sowemimo2020-10-111-1/+1
|
* Add background and foreground colors to TSNoneAkin Sowemimo2020-10-111-1/+1
| | | | | This fixes the issue where colors highlighted as TSNone were not reverting to the background and foreground color.
* feat(queries): modeline mechanism for base langsThomas Vigouroux2020-10-1117-31/+72
| | | | | | | | This implements https://github.com/neovim/neovim/pull/13059#issuecomment-704414189 This behaves like modelines and remove the use of the base_language map. Also, this allows to fine-tune what we actually want to include per query, which is better IMO.
* Use utils get_node_text to get line content and trim all whitespaces.Kristijan Husak2020-10-112-4/+3
|
* Remove old statusline implementation with new one.Kristijan Husak2020-10-113-43/+8
|