summaryrefslogtreecommitdiff
path: root/queries/lua
AgeCommit message (Collapse)Author
2022-01-21feat: rewrite indent moduleMunif Tanjim
2022-01-21feat: improve indent moduleMunif Tanjim
get_node_at_line should return appropriate child if available
2022-01-18feat(lua)!: switch from our fork to MunifTanjim's (#2272)Christian Clason
also take queries from https://github.com/MunifTanjim/nvim-treesitter-lua/tree/main/queries/lua BREAKING CHANGE: queries are not compatible; modules will have to update
2021-12-13highlights(lua): `next` as builtin functionnumToStr
2021-11-23Prefer lua-match over matchLewis Russell
as string.find is much quicker than vim.regex:match*
2021-11-16Add basic vimscript injection in `vim.cmd`/`nvim_command`/`nvim_exec` (#1922)vhyrro
2021-09-25injections(lua): fix cdef injectionStephan Seitz
Fixes #1840
2021-09-01highlights(lua): Add Lua 5.1 built-in functionsSergio Alejandro Vargas
2021-08-17highlights(lua): Add semicolonsSergio Alejandro Vargas
2021-08-14Lua: highlight uppercase variables as constants (#1690)Santos Gallegos
2021-08-02highlights(lua): Organize `function_call` queriesSergio Alejandro Vargas
2021-08-02highlights(lua): Fix method callsSergio Alejandro Vargas
The usual `function_call` query would highlight the objects at the beginning of a method call. The `method` query has to account for this, and highlight the identifier as a variable again.
2021-07-07Lua: highlight function definitionsSantos Gallegos
In lua ```lua function foo() end ``` is syntax sugar for ```lua foo = function() end ```
2021-07-04feat(keywords) merge return and yield into keyword.return groupantonk52
2021-07-04feat(keywords) add keyword.return & keyword.yieldantonk52
2021-06-17feat: added `self` as builtin keyword for LuaFolke Lemaitre
2021-05-16Add `do_statement` to lua foldsSergio Alejandro Vargas
2021-05-07Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos
This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
2021-04-28Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos
* Comment: use `@combined` to create just one tree per buffer There is no need to create a tree per line/block for comments. Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251 * Add injections for scss * Fix jsonc * Combine jsdoc
2021-04-22fix(lua): correctly highlight field namesThomas Vigouroux
2021-03-12Add comment parser to highlight comment tags (#893)Santos Gallegos
Closes #236
2021-03-01feat: use @ignore for comments and multiline stringselianiva
2021-02-23add do statement to lua indentskiyan
2021-02-10Lua: highlight fieldsSantos Gallegos
2021-02-07Lua: improve scope queriesSantos Gallegos
- Set scope to parent - Group all scopes - Use the . operator
2021-01-27fix(lua): correctly handle do_statement in localsThomas Vigouroux
2021-01-27fix(lua): correctly highlight do_statementThomas Vigouroux
2021-01-20lua: Add more indent nodesLewis Russell
2021-01-04indent fixeskiyan42
2021-01-01Add c injection for ffi.cdef to luaSimon Hauser
2020-12-16Remove duplicate capture for `function_definition`El Piloto
2020-12-16Capture anonymous functions assigned to variablesEl Piloto
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/709
2020-11-25lua: update to pull shebang fixThomas Vigouroux
2020-11-23lua: fix "then" highlightingThomas Vigouroux
2020-10-21Add lua params (#605)Chinmay Dalal
* Add lua params * Fix * Remove redundant outer
2020-10-19Treesitter indentkiyan42
also fixes the memoize_by_buf_tick function
2020-10-15feat: Add more lua foldsMike
Add repeat_statement to lua folds
2020-10-04Remove textobjects moduleStephan Seitz
2020-09-19Add @keyword.operator for operators that are English words and add ↵Stephan Seitz
@exception for Java/JS
2020-09-14Fix #307: Use and document TSVariable/TSVariableBuiltin in all languagesStephan Seitz
2020-09-14Folds: rename query files to folds.scm to be consistentSantos Gallegos
We use plural names for all query files except folds.
2020-09-10Add folding for local functions in luaNolan Prochnau
2020-09-08use keyword.function instead of functionkyazdani42
2020-09-08fix function/end keywords not applied for every scopekyazdani42
2020-09-06fix: contional > conditional in lua hl.scmkyazdani42
2020-09-06Lua: update highlightsSantos Gallegos
2020-09-06Lua: fix loop and conditional keywords highlightsSantos Gallegos
2020-09-01fix(fold): revamp foldThomas Vigouroux
fix(fold): typo fix(fold): remove debug and add queries fix(fold): fallback to local scopes for folds
2020-08-17chore(highlights): remove is predicate usageSteven Sojka
2020-08-16feat(highlights): add is predicateSteven Sojka