aboutsummaryrefslogtreecommitdiffstats
path: root/lua
Commit message (Collapse)AuthorAgeFilesLines
...
* Make make-range! more relaxed (one of the arguments maybe nil)Stephan Seitz2020-11-171-2/+2
|
* Add initial clojure supportsogaiu2020-11-041-0/+8
|
* parser: only use parse to get a treeThomas Vigouroux2020-11-034-4/+4
| | | | This will avoid using internal data.
* feat(install): Enable installation of parser with repo.url as a local pathStephan Seitz2020-10-311-9/+48
|
* fix(languagetree): highlight children regardless of starting columnSteven Sojka2020-10-301-6/+27
|
* fix(#620): Fall into the "update-all" branch if lang is "all"BodneyC2020-10-281-1/+1
|
* 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-262-1/+12
| | | | | | 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
* 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 verilog/systemverilog queriesZeger Van de Vannet2020-10-201-0/+8
|
* Remove textobjects from built_in_query_groupsStephan Seitz2020-10-191-1/+1
|
* Treesitter indentkiyan422020-10-194-55/+56
| | | | also fixes the memoize_by_buf_tick function
* start indent modulekiyan422020-10-192-0/+75
|
* feat(languagetree): implement language treeThomas Vigouroux2020-10-192-6/+167
| | | | | | | 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>
* 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.
* 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
|
* feat(queries): modeline mechanism for base langsThomas Vigouroux2020-10-111-31/+39
| | | | | | | | 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-111-3/+2
|
* Remove old statusline implementation with new one.Kristijan Husak2020-10-111-27/+4
|
* Add implementation for improved statusline. Closes #545.Kristijan Husak2020-10-111-0/+52
|
* fix(highlights): Add TSNamespace highlightStephan Seitz2020-10-101-0/+1
| | | | | | | | | Start adding highlights for - C++ - Rust (including other scoped_identifier/scoped_type_identifier fixes) - JS (only namespace_import) Addresses #516
* Shorten module reference shell_command_selectors to shell.Suhas Hebbar2020-10-061-9/+8
|
* Code RefactorSuhas Hebbar2020-10-062-176/+184
| | | | | - Move select_* function to shell_command_selectors.lua. - Rename select_args to select_compiler_args.
* Remove dependency on unzip.Suhas Hebbar2020-10-061-9/+34
| | | | Use tar instead which should be available on default Unixes and Windows
* Add teal parserCorey Williamson2020-10-051-0/+8
|
* Fix: fallback git-installation (list of commands is expected)Stephan Seitz2020-10-041-13/+15
|
* feat: add ocamllex parser and highlightsPau Ruiz Safont2020-10-041-0/+8
|
* Remove textobjects moduleStephan Seitz2020-10-046-360/+0
|
* Merge pull request #487 from steelsojka/remove-refactorSteven Sojka2020-10-045-294/+0
|\ | | | | chore(modules): remove refactor module
| * chore(modules): remove refactor moduleSteven Sojka2020-09-255-294/+0
| |
* | initial support for CodeQLAlvaro Muñoz2020-09-301-0/+8
| |
* | chore: dedup join_paths <-> join_pathStephan Seitz2020-09-282-12/+7
| |
* | Add progress info to iter_cmdStephan Seitz2020-09-271-4/+36
| |
* | Add lockfile and make lockfile default install revisionStephan Seitz2020-09-273-48/+141
|/
* feat(parsers): add possibility to install from other branchesStephan Seitz2020-09-221-1/+8
| | | | | More and more Github repos are switching to "main" branch. Example: `tree-sitter-wasm`
* fix(checkhealth): use pcall to check for syntax errors in query filesStephan Seitz2020-09-201-1/+7
|
* feat(install): make compiler selectableStephan Seitz2020-09-191-3/+6
| | | | | | Compilers are selectable via 'nvim-treesitter.install'.compilers (list of compilers) or environment variable CC Addresses #502
* fix: only concatenate cmd.err if not nilStephan Seitz2020-09-191-1/+3
|
* feat(install): print more information when there's a failurePau Ruiz Safont2020-09-191-2/+3
|
* feat: add parser for ocaml interface filesPau Ruiz Safont2020-09-192-0/+11
| | | | | | The files have the mli extension. The parser grammar uses the name ocaml_interface, but since vim the underscore has a special meaning ocamlinterface is used as the filetype.
* Add @keyword.operator for operators that are English words and add ↵Stephan Seitz2020-09-191-1/+2
| | | | @exception for Java/JS
* Ensure that updated files are replaced w/o warningRasmus Michelsen2020-09-181-1/+1
|