summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* feat(t32): update tests to new node typesChristoph Sax2023-07-303-14/+78
|
* feat(t32): re-enable testsChristoph Sax2023-07-309-0/+419
| | | | | | | | | - Switch to GitLab mirror repository - Lock grammar version 2.2.0 - Revert "fix(tests): mark t32 as allowed to fail" This reverts commit ba223ceecc5d66312780c45079b6ae55c406fa96. - Revert "fix(tests): remove t32 tests" This reverts commit 97957a547b93412411ba3a8a9abd27589247c869.
* fix(tests): remove t32 testsChristian Clason2023-07-299-419/+0
| | | | | t32 parser is hosted on Codeberg, which has frequent outages that block unrelated CI. Revert this commit if and when uptime has improved.
* fix(c)!: update C, CPP parsers and queriesAmaan Qureshi2023-07-271-2/+1
| | | also update derived parsers (arduino, cuda, glsl, hlsl, ispc, objc)
* feat(promql,yaml): add parser and yaml injectionsMichael Hoffmann2023-07-181-0/+12
| | | | Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
* feat(wing): add parser (#5021)Glib Shpychka2023-06-292-0/+23
| | | | Co-authored-by: Christian Clason <c.clason@uni-graz.at> Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
* tests: fix failed tests (#4901)Pham Huy Hoang2023-06-053-69/+37
| | | fix failed tests for tiger, t32 and wgsl
* feat: add indents for annotation defs (#4828)Pham Huy Hoang2023-06-043-0/+13
| | | | - Add indent for `@interface` and `@Annotation(...)` - Add notes for indent queries
* feat(prisma): highlight viewsWill Ruggiano2023-06-041-0/+7
|
* feat(ecma): convert eligible `@keyword.operators`Ananda Umamil2023-06-041-1/+1
|
* fix(gleam): minor indent fixesAlex Manning2023-06-042-0/+15
|
* chore: update GleamAmaan Qureshi2023-05-293-26/+0
|
* indents(sql): initial support (#4857)Matthias Q2023-05-258-0/+59
| | | | | * indents(sql): initial support * indents(sql): fix queries and lua style
* feat(t32): add indent rules (#4782)Christoph Sax2023-05-187-3/+252
|
* Added USD as a language + some queriesColin Kennedy2023-05-155-0/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added USD highlight unittests Added USD indentation Added USD indents.scm file Added USD indent rules Simplified USD highlight groups Added explicit highlight groups Added newline Removed after/ftdetect/usda.lua usd/indents.scm - Added inline comments explaining the nodes Fixed USD highlight group unittests Added indentation unittests Simplified USD `@identifier` highlighting Added USD documentation highlight group tests Simplified USD highlight groups Moved USD `@identifier` and `@namespace` highlights into one place Removed and simplified tests/query/highlights/usd Simplified tests/query/highlights/usd more Removed trailing newline Combined USD test files Added `set filetype=usd` to minimal_init.lua
* highlights(markup): distinguish heading level in queriesChristian Clason2023-05-131-7/+7
| | | | | also add a few queries from Helix and remove controversial code block conceal in Markdown
* fix(nickel): wrong indent on line after top level comment (#4792)Zheng PiaoDan2023-05-132-0/+6
| | | | | | | | | | | | | | | | | | | | | * fix(nickel): wrong indent on line after top level comment Previous incorrect indentation on line after top level comment: ``` # no indent after this comment { another = 1 } ``` Expected result: ``` # no indent after this comment { another = 1 } ````
* feat: add indents.scm for nickel (#4790)Zheng PiaoDan2023-05-132-0/+33
|
* feat: add swift indents (#4756)Pham Huy Hoang2023-05-084-0/+123
|
* Update Capnp (#4713)Amaan Qureshi2023-05-073-0/+1720
| | | | | | | | | | | | | * feat(capnp): update queries from upstream changes * test: add tests for capnp * fix indent queries * ci: fix capnp indent tests --------- Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
* ci: add tests for #4632Stephan Seitz2023-05-052-0/+11
| | | | | Issue #4632 might be fixed by https://github.com/UserNobody14/tree-sitter-dart/pull/41
* Add Python else elif dedent (#4618)Pham Huy Hoang2023-04-292-0/+5
| | | | | | | * feat(python): add interactive else/elif dedent * fixup * add test
* fix(python,starlark): builtin types should come after typesAmaan Qureshi2023-04-251-1/+3
|
* feat(python,starlark): highlight type conversions as `@function.macro`Amaan Qureshi2023-04-251-0/+1
|
* fix(python,starlark): update field match patternAmaan Qureshi2023-04-251-0/+10
|
* chore(smali): add testsAmaan Qureshi2023-04-256-0/+419
|
* tests: fix deprecated tests (#4681)Pham Huy Hoang2023-04-201-2/+8
|
* feat(cpp): improve function.call to support any level of nesting for ↵John Drouhard2023-04-151-7/+9
| | | | qualified identifiers
* fix(dart_indent): Fix dart case/default indentPham Huy Hoang2023-04-142-2/+39
| | | | | | | | | | add tests add tests for fallthrough case add more tests keep functional tests
* chore(dart): remove tests for switchRobert Brunhage2023-04-132-12/+0
|
* test(dart): add test cases for open issuesRobert Brunhage2023-04-134-2/+36
|
* fix(dart): review commentRobert Brunhage2023-04-131-1/+1
|
* test(dart): add expected failure file to testRobert Brunhage2023-04-131-1/+3
|
* chore: fix formatting issue for dart testRobert Brunhage2023-04-131-1/+6
|
* Update tests/indent/dart_spec.luaRobert Brunhage2023-04-131-1/+1
| | | Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
* test(dart): Add an expected failure testRobert Brunhage2023-04-132-0/+16
|
* Revert "fix(dart): function argument indents is inconsistent"Robert Brunhage2023-04-132-15/+0
| | | | This reverts commit ac4020c70722337c326bf65b645b162ee6e1796b.
* fix(dart): function argument indents is inconsistentRobert Brunhage2023-04-112-0/+15
|
* fix(dart): try statement wouldn't indent (#4623)Robert Brunhage2023-04-102-0/+6
|
* fix(c_indents): fix expression leaking indentsPham Huy Hoang2023-04-082-0/+39
|
* add testPham Huy Hoang2023-04-083-0/+35
|
* feat(python): add break/continue dedentPham Huy Hoang2023-03-252-0/+11
|
* feat(python): add match-case indentsPham Huy Hoang2023-03-252-0/+19
|
* refactor(indent)!: Rework indent, aligned indentGeorge Harker2023-03-2411-5/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | indents now use @indent.X style captures, and indent.PROP for properties to set on those captures, as documented in the help. Captures are: indent.auto indent.begin indent.end indent.dedent indent.branch indent.ignore indent.align indent.zero Properties are: indent.immediate indent.start_at_same_line indent.open_delimiter indent.close_delimiter indent.increment indent.avoid_last_matching_next Multiple opening delims on one line and multiple closing on a line are collapsed so as not to over indent, The final line of @indent.align blocks which must in some cases be treated specially to avoid clashing with the next line is treated the same regardless of whether the @indent.align capture actually uses aligned indentation or just normal indentation. The indent.avoid_last_matching_next property controls this. Adjust python to use these. List, set, dict and tuple all use @indent.align which permits both hanging and aligned styles. Finally, try: on it’s own will indent when typing live but make no guaranteeds about whole-file formatting. Includes lucario387:fix-align-indent
* feat(vue): add tsx/jsx injection queries (#4550)Lucario3872023-03-241-0/+4
| | | | | | | * feat(vue): add tsx/jsx injection queries - add a test - style: format vue/injections.scm
* test: ecma injectionsBenny Powers2023-03-222-9/+9
|
* test: html injectionsBenny Powers2023-03-221-5/+38
|
* feat(python): add "return" patterns to @indent_endPham Huy Hoang2023-03-162-0/+20
| | | | | | `return ...` is usually the last line of a function/statement, so mark some possible patterns of `return` with `@indent_end` to dedent the line after it
* fix(python): add missing @indent_endPham Huy Hoang2023-03-162-0/+79
|
* fix: change folding algorithm to fix Python indentsGeorge Harker2023-03-152-2/+23
|