aboutsummaryrefslogtreecommitdiffstats
path: root/queries/make
Commit message (Collapse)AuthorAgeFilesLines
* feat(make): fold `define` statements.Andreas Hartmann2025-02-271-0/+1
|
* feat(make): highlight more special charactersRiley Bruins2024-08-261-0/+16
|
* feat: standardize and document export keywordsRiley Bruins2024-05-131-2/+4
| | | | | | Many export keywords are captured as `@keyword.import`. This commit makes it so they are all captured like that, and mentions it in the documentation.
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-211-3/+2
|
* feat(format-scripts): linewrap predicates再生花2024-02-231-2/+8
| | | "format-ignore".kick()
* fix(format): handle list with 300 nodesPhạm Huy Hoàng2024-01-301-2/+1
|
* fix(make): highlight order-only prerequisite pipeRiley Bruins2024-01-261-0/+1
|
* chore: query formattingPham Huy Hoang2024-01-193-126/+132
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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(make): highlight phony prerequisites as functionsRiley Bruins2023-11-291-0/+5
|
* feat(make): give targets the function highlightRiley Bruins2023-11-291-0/+2
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-121-3/+6
| | | | | | | | | 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
* fix(make/highlights): add `define` and operatorsTyler Miller2023-06-031-10/+25
|
* highlights(make): fix capturesObserverOfTime2022-11-261-9/+4
|
* feat(spell): support more languagesLewis Russell2022-09-261-1/+1
|
* fix(fold): don't include whitespace end regionsLewis Russell2022-09-121-0/+7
| | | | | | | | | | | | 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.
* make: add substitution_reference @operatorChinmay Dalal2022-09-031-0/+1
|
* highlights(make): add all special targetsLewis Russell2022-01-071-0/+15
|
* feat(lang): add makeLewis Russell2021-12-142-0/+109