summaryrefslogtreecommitdiff
path: root/queries/yaml
AgeCommit message (Collapse)Author
2022-10-16folds(yaml): Fold at the entire node, not at the body.Jongwook Choi
2022-10-15highlights: use @preproc where appropriateObserverOfTime
2022-09-26feat(spell): support more languagesLewis Russell
2022-06-14fix(indents/yaml): only indent mapping pair if value is a blockPhelipe Teles
This improves the following situation, in which '|' is the cursor position: ```yaml - key1: value1 key2: value2| ``` Before this commit, by pressing Enter would result in this indentation: ```yaml - key1: value1 key2: value2 | ``` Which is less convenient than this: ```yaml - key1: value1 key2: value2 | ```
2022-06-14fix(indents/yaml): improve error handlingPhelipe Teles
This helps to solve the first issue reported at #1377. The problem is that the line loses its indentation when we start inserting a new mapping pair (specifically, when we enter the character ":"). The issue seems to be solved by auto indenting ERROR nodes.
2022-06-14fix(indents/yaml): indent sequence/list itemsPhelipe Teles
This solves the second issue reported at #1377, in which the cursor would not be aligned with the line "key2: value2" when entering a new line below it. ```yaml - key1: value1 key2: value2 ```
2022-02-05injections(yaml): inject at command list for Gitlab scriptStephan Seitz
2022-02-05injections(yaml): injection on Gitlab's before_script/after_scriptStephan Seitz
2021-11-28yaml(injections): Also add heuristics for Gitlab CI bashStephan Seitz
2021-11-28injections(yaml): inject bash on key "run"Stephan Seitz
2021-10-26yaml: improve highlights and locals (#946)Santos Gallegos
- More scopes - Highlight strings as strings - Recognize more keys/fields Improvements can be seen with this weird yaml: ```yaml { foo: bar } --- {a: [b, c], [d, e]: f} --- - { single line, a: b} - { multi line, a: b} --- "fooo": bar 'foo': bar one: two ```
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-18YAML: update queries (#1203)Santos Gallegos
Closes https://github.com/nvim-treesitter/nvim-treesitter-refactor/issues/18
2021-04-09Yaml: update locals (#1172)Santos Gallegos
The parser doesn't break the symbols in `*` `&` from the name of anchors/aliases. So go to definition doesn't work, but highlight of usage does :D Test with ```yaml Defaults: &defaults Company: foo Item: 123 Computer: <<: *defaults <<: *defaults Price: 3000 ``` Ref https://github.com/nvim-treesitter/nvim-treesitter-refactor/issues/18
2021-03-12Add comment parser to highlight comment tags (#893)Santos Gallegos
Closes #236
2021-02-10YAML: add localsSantos Gallegos
This is so incremental selection works
2021-02-07Yaml: fix foldsSantos Gallegos
Fix https://github.com/nvim-treesitter/nvim-treesitter/issues/887 (block_node) includes more nodes to fold, test with: ```yaml days: Monday: - test: example Tuesday: - test: example Wednesday: - test: example - test: example Thursday: - test: example Friday: - test: example - foo: | One Two Three ```
2021-01-14feat: added more indent querieselianiva
2021-01-04feat: added more fold querieselianiva
2020-12-25wildcards to capture keysDavid Hotham
2020-12-25simplify treatement of escape sequencesDavid Hotham
2020-12-25remove plus from list of punctuationDavid Hotham
2020-12-25first draft of YAML highlightingDavid Hotham