aboutsummaryrefslogtreecommitdiffstats
path: root/queries/lua/highlights.scm
Commit message (Collapse)AuthorAgeFilesLines
* fix(lua): remove duplicate ellipsis highlightRiley Bruins2024-09-141-2/+0
|
* fix(lua): use @property for keys in table literals (#6956)Tyler Miller2024-07-211-1/+1
| | | | | | `@property` should be used for key-value pairs, while `@variable.member` is used for field-access/index-expressions. Using different captures also provides the benefit of allowing the two to be highlighted differently.
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-211-35/+29
|
* feat(format-scripts): linewrap predicates再生花2024-02-231-8/+6
| | | "format-ignore".kick()
* chore: query formattingPham Huy Hoang2024-01-191-113/+118
|
* refactor: manual pre-cleanupPham Huy Hoang2024-01-191-1/+2
| | | | | Moving comments, adding `format-ignore` to lines that will be better with it
* feat!: align standard captures with upstreamChristian Clason2024-01-191-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Sharing highlight queries with upstream tree-sitter and Helix is difficult. Solution: Where reasonable, use capture names in tree-sitter's standard list or Helix's Atom-style hierarchy. Specifically: * tree-sitter "standard capture names" (https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/highlight/src/lib.rs#L20-L72): - `@parameter` -> `@variable.parameter` - `@field` -> `@variable.member` - `@namespace` -> `@module` - `@float` -> `@number.float` - `@symbol` -> `@string.special.symbol` - `@string.regex` -> `@string.regexp` - `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below) - `@text.title` -> `@markup.heading` - `@text.literal` -> `@markup.raw` - `@text.reference` -> `@markup.link` - `@text.uri` -> `@markup.link.url` (in markup links) - `@string.special` -> `@markup.link.label` (non-url links) - `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`) * Helix captures (https://docs.helix-editor.com/master/themes.html#syntax-highlighting): - `@method` -> `@function.method` - `@method.call` -> `@function.method.call` - `@text.{todo,warning,note,danger}` -> `@comment.{error,warning,hint,info,todo}` - `@text.diff.{add,delete,}` -> `@diff.{plus,minus,delta}` - `@text.uri` -> `@string.special.url` (outside markup) - `@preproc` -> `@keyword.directive` - `@define` -> `@keyword.directive`(`.define`?) - `@storageclass` -> `@keyword.storage` - `@conditional` -> `@keyword.conditional` - `@debug` -> `@keyword.debug` - `@exception` -> `@keyword.exception` - `@include` -> `@keyword.import` - `@repeat` -> `@keyword.repeat` * cleanup - remove some redundant `@conceal` (but still allow it for conceal-only patterns) - remove obsolete `@error` (syntax linting is out of scope for this repo) - sort, cleanup capture list in `CONTRIBUTING.md`
* feat: more `@string.regex` highlightsRiley Bruins2023-12-231-0/+20
|
* refactor: Remove all `(ERROR) @error` capturesPham Huy Hoang2023-10-251-3/+0
| | | | | | | | | | | | As discussed in PR#5421, capturing `@error` is inconsistent, requiring deep nesting (or priority) in order to correctly have red backgrounds to it. Some queries has this capture, some don't. For consistency purposes, removing all of them is more preferable. For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)` to your custom queries.
* feat(lua): highlight variadic expressions as builtin parameters (#5567)Riley Bruins2023-10-241-0/+2
|
* fix(lua): highlights for attributeMunif Tanjim2023-09-071-3/+4
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-0/+2
| | | | | | | | | Since 0.9, @lang syntax is still available as fallback but will soon be deprecated. Because of that, new syntax should be adopted once 0.9 becomes the baseline requirements for nvim-treesitter - update health check - update doc
* queries/*/highlights.scm : remove `@spell` for stringsShellCode332023-08-071-1/+1
|
* feat(lua): update highlights query for functions (#4919)Munif Tanjim2023-06-081-5/+32
|
* refactor(lua): move _VERSION to `@constant.builtin`, builtin types to ↵Amaan Qureshi2023-04-281-1/+7
| | | | `@namespace.builtin`
* queries(lua): add more keywords related to variable/function builtins, ↵Amaan Qureshi2023-03-201-3/+9
| | | | debug, and coroutines
* fix(lua): properly highlight labelsAmaan Qureshi2023-03-201-2/+7
|
* feat(lua): add more builtin variables per lua_lsAmaan Qureshi2023-03-111-1/+1
|
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-0/+6
|
* highlights(lua): use @method.callJaehwang Jung2022-12-151-1/+1
|
* lua: update queriesChristian Clason2022-11-011-0/+5
|
* highlights: use @preproc where appropriateObserverOfTime2022-10-151-1/+1
|
* feat(spell): support more languagesLewis Russell2022-09-261-4/+2
|
* highlights(lua): add spellLewis Russell2022-09-121-0/+2
|
* Split func/method definition from calls in several programming language querieslfenzo2022-08-031-2/+2
|
* highlights(lua): use `#eq?` instead of `#match?`Janfel2022-06-241-1/+1
| | | Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
* highlights(lua): highlight only `self` as `self`Janfel2022-06-241-1/+1
| | | Before, all identifiers containing the substring "self" were highlighted as the builtin `self`. Now, only the identifier `self` is highlighted as `self`.
* fix(lua): restore precedence for @variable.builtin and @constant.builtinChristian Clason2022-03-121-14/+12
|
* highlights(lua): don't highlight arguments as parametersStephan Seitz2022-01-301-2/+0
|
* feat(lua)!: switch from our fork to MunifTanjim's (#2272)Christian Clason2022-01-181-90/+115
| | | | | 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
* highlights(lua): `next` as builtin functionnumToStr2021-12-131-0/+3
|
* Prefer lua-match over matchLewis Russell2021-11-231-1/+1
| | | | as string.find is much quicker than vim.regex:match*
* highlights(lua): Add Lua 5.1 built-in functionsSergio Alejandro Vargas2021-09-011-0/+9
|
* highlights(lua): Add semicolonsSergio Alejandro Vargas2021-08-171-1/+1
|
* Lua: highlight uppercase variables as constants (#1690)Santos Gallegos2021-08-141-0/+2
|
* highlights(lua): Organize `function_call` queriesSergio Alejandro Vargas2021-08-021-3/+6
|
* highlights(lua): Fix method callsSergio Alejandro Vargas2021-08-021-1/+1
| | | | | | 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.
* Lua: highlight function definitionsSantos Gallegos2021-07-071-0/+5
| | | | | | | | | | | | | | In lua ```lua function foo() end ``` is syntax sugar for ```lua foo = function() end ```
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-3/+1
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-1/+4
|
* feat: added `self` as builtin keyword for LuaFolke Lemaitre2021-06-171-0/+2
|
* fix(lua): correctly highlight field namesThomas Vigouroux2021-04-221-1/+2
|
* Lua: highlight fieldsSantos Gallegos2021-02-101-0/+1
|
* fix(lua): correctly highlight do_statementThomas Vigouroux2021-01-271-0/+6
|
* lua: update to pull shebang fixThomas Vigouroux2020-11-251-1/+3
|
* lua: fix "then" highlightingThomas Vigouroux2020-11-231-2/+2
|
* Add lua params (#605)Chinmay Dalal2020-10-211-0/+4
| | | | | | | * Add lua params * Fix * Remove redundant outer
* Add @keyword.operator for operators that are English words and add ↵Stephan Seitz2020-09-191-3/+7
| | | | @exception for Java/JS
* Fix #307: Use and document TSVariable/TSVariableBuiltin in all languagesStephan Seitz2020-09-141-0/+3
|
* use keyword.function instead of functionkyazdani422020-09-081-3/+3
|