tree-sitter-vala

Commits at 7ecfccabd1ea238a102367b47e227ad5377ad791

  1. 7ecfccab Migrate to tree-sitter.json (lang version 15) Having "package.json" is confusing (it's not published to npm.) Also "tree-sitter" CLI displays warning everytime I run generate command if a project does not have `tree-sitter.json` file. Shota FUJI authored at Shota FUJI comitted at
  2. 2606c054 Set "linguist-generated" attribute on generated files Tree sitter CLI generates files under `src/`. Shota FUJI authored at Shota FUJI comitted at
  3. 12617c61 Fix parse error on "Foo() {}" struct initialization https://wiki.gnome.org/Projects/Vala/Tutorial#Structs Shota FUJI authored at Shota FUJI comitted at
  4. 8f93cb7f Remove unnecessary file Shota FUJI authored at Shota FUJI comitted at
  5. 1345e07f Do not hard-code modifier string inside highlight query Shota FUJI authored at Shota FUJI comitted at
  6. 10fb4b1f Add support for "sealed" class modifier Shota FUJI authored at Shota FUJI comitted at
  7. b0903c79 Fix invalid predicate on nvim highlight query Shota FUJI authored at Shota FUJI comitted at
  8. 39ca73c8 Generate using the latest tree-sitter CLI Just ran "tree-sitter generate". There were warnings and "tree-sitter test" complains "highlights.scm" sets wrong number of arguments, but ignoring as I don't what it is. ``` $ tree-sitter test attributes: 1. ✓ Attributes expressions: 2. ✓ Expressions namespaces: 3. ✓ Namespaces preprocessor: 4. ✓ Preprocessor strings: 5. ✓ Strings using-directives: 6. ✓ Using directives Total parses: 6; successful parses: 6; failed parses: 0; success percentage: 100.00%; average speed: 3867 bytes/ms Error in query file "highlights.scm" Caused by: Query error at 52:1. Invalid predicate: Wrong number of arguments to #match? predicate. Expected 2, got 8. ``` Shota FUJI authored at Shota FUJI comitted at
  9. 4dd76a43 Format files with dprint Shota FUJI authored at Shota FUJI comitted at
  10. 14025cc6 Add dprint and nixfmt to dev tools Shota FUJI authored at Shota FUJI comitted at
  11. 9f3c0562 Create Nix Flake file for development shell Shota FUJI authored at Shota FUJI comitted at
  12. 991b6856 Create editorconfig file Shota FUJI authored at Shota FUJI comitted at
  13. 97e6db3c README.md: explain how to install this in neovim (#5) * README.md: explain how to install this in neovim * Update README.md Co-authored-by: Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> --------- Co-authored-by: Ben Iofel <1713819+benwaffle@users.noreply.github.com> Co-authored-by: Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> mr-nice authored at GitHub comitted at
  14. 8f690bfa improve highlight of constants, symbols, macros Princeton Ferro authored at Princeton Ferro comitted at
  15. ce4ba4d0 support inline attribute lists Princeton Ferro authored at Princeton Ferro comitted at
  16. 84e15013 preprocessor syntax improvements Princeton Ferro authored at Princeton Ferro comitted at
  17. c15af34d improvements Princeton Ferro authored at Princeton Ferro comitted at
  18. 81217b20 Improve preprocessor highlighting Mateus Melchiades authored at Princeton Ferro comitted at
  19. c9eea93b project has moved to vala-lang Princeton Ferro authored at Princeton Ferro comitted at
  20. d93ccd4e nvim: use parameter instead of variable.parameter Princeton Ferro authored at Princeton Ferro comitted at
  21. 7313c05f add compiled src/ Princeton Ferro authored at Princeton Ferro comitted at
  22. 26360b7d improve highlighting of constants and OCEs Princeton Ferro authored at Princeton Ferro comitted at
  23. be0f7972 support more integers and reals Princeton Ferro authored at Princeton Ferro comitted at
  24. d7402e6d handle left-contained expressions Expressions that don't need parentheses when there is a unary operator to their left. For example, yield expressions: if (!yield x ()) ... Princeton Ferro authored at Princeton Ferro comitted at
  25. 6a0dd9d1 handle more strings Princeton Ferro authored at Princeton Ferro comitted at
  26. 952abb81 more comments in highlights.scm Princeton Ferro authored at Princeton Ferro comitted at
  27. 97a2fe29 highlight more operators and keywords Princeton Ferro authored at Princeton Ferro comitted at
  28. 5bc67c98 support optional 'not' in type relational expr Not yet supported in Vala. Princeton Ferro authored at Princeton Ferro comitted at
  29. cfd333b5 disable parsing of comments inside strings Princeton Ferro authored at Princeton Ferro comitted at
  30. 6ee98a91 add highlights for nvim-treesitter Princeton Ferro authored at Princeton Ferro comitted at
  31. 04657341 fix ambiguity with *-expressions Fixed ambiguity with expressions with asterisks, like local declarations with pointer types, pointer dereferences, or multiplications. Princeton Ferro authored at Princeton Ferro comitted at
  32. ff238441 support logical operator keywords Princeton Ferro authored at Princeton Ferro comitted at
  33. 8ab2dedd highlight == operator Princeton Ferro authored at Princeton Ferro comitted at
  34. d2fdae3a support with statements Princeton Ferro authored at Princeton Ferro comitted at
  35. a934d634 support nested functions and a few fixes Princeton Ferro authored at Princeton Ferro comitted at
  36. f45d0127 support partial types Princeton Ferro authored at Princeton Ferro comitted at
  37. 9dbe0132 add locals query Princeton Ferro authored at Princeton Ferro comitted at
  38. a6126f33 highlight methods different from function calls Princeton Ferro authored at Princeton Ferro comitted at
  39. 63707301 add injection name Princeton Ferro authored at Princeton Ferro comitted at
  40. fe68baf6 fix escape sequences, catch clauses, pointer types Princeton Ferro authored at Princeton Ferro comitted at
  41. 9670fa95 highlight destructor names Princeton Ferro authored at Princeton Ferro comitted at
  42. 3af606b0 improve escape sequences and yield Princeton Ferro authored at Princeton Ferro comitted at
  43. af8f0adb add 'value' expression - used within a property accessor Princeton Ferro authored at Princeton Ferro comitted at
  44. e0f83467 highlight string formatters and other fixes - also allow attributes on errordomain methods Princeton Ferro authored at Princeton Ferro comitted at
  45. f2b10392 improve grammar - add slice expression - fixes Princeton Ferro authored at Princeton Ferro comitted at
  46. 6c753f01 improve grammar - support preprocessor statements - support constructors and destructors - other fixes Princeton Ferro authored at Princeton Ferro comitted at
  47. e2a345e2 improve grammar - handle more expressions and declarations Princeton Ferro authored at Princeton Ferro comitted at
  48. 8d391baa add signals and delegates Princeton Ferro authored at Princeton Ferro comitted at
  49. bc98c908 add lambda expressions Princeton Ferro authored at Princeton Ferro comitted at
  50. afbf6c4f improve highlight - of symbols - "owned" keyword Princeton Ferro authored at Princeton Ferro comitted at
  51. 97545d4c add more rules, improve highlights - add enum, errordomain, interface, and struct - highlight more keywords Princeton Ferro authored at Princeton Ferro comitted at
  52. ee72702f add base access, improve element access exprs Princeton Ferro authored at Princeton Ferro comitted at
  53. 8855677d highlight using Princeton Ferro authored at Princeton Ferro comitted at
  54. f594e0fe improve grammar - highlight var and 'void' as builtin types - allow non-decls in for statement Princeton Ferro authored at Princeton Ferro comitted at
  55. d4f093a0 support switch statements Princeton Ferro authored at Princeton Ferro comitted at
  56. 3c63fbb7 add element access, yield expression; other fixes Princeton Ferro authored at Princeton Ferro comitted at
  57. ab58415d add more statements (if, while, do, for, foreach) Princeton Ferro authored at Princeton Ferro comitted at
  58. 34760c1f add try-catch-finally Princeton Ferro authored at Princeton Ferro comitted at
  59. bf60a44d improve grammar and fix member access parsing - highlight operators - highlight names in method calls - fix some ambiguities Princeton Ferro authored at Princeton Ferro comitted at
  60. 6d443bff improve constants, initializers, and static casts Princeton Ferro authored at Princeton Ferro comitted at
  61. 7f79306e improve grammar and highlighting - highlight keywords - add more rules Princeton Ferro authored at Princeton Ferro comitted at
  62. 6dcaef1b update README Princeton Ferro authored at Princeton Ferro comitted at
  63. 1b6079ec improve grammar and implement highlighting queries - drop type_weak - introduce queries/highlights.scm - add some more rules to the grammar Princeton Ferro authored at Princeton Ferro comitted at
  64. 4f97f0a5 fix method parameters Princeton Ferro authored at Princeton Ferro comitted at
  65. b633332d improve expressions Princeton Ferro authored at Princeton Ferro comitted at
  66. 2ed0adcd simplify grammar Princeton Ferro authored at Princeton Ferro comitted at
  67. 252a5d2f support field declarations Princeton Ferro authored at Princeton Ferro comitted at
  68. 7c1e64c6 add test for namespaces Princeton Ferro authored at Princeton Ferro comitted at
  69. cc2f97c9 Initial commit Princeton Ferro authored at Princeton Ferro comitted at