Commit Graph

40115 Commits

Author SHA1 Message Date
Maurício Szabo
168a36cec7 Removed github 2023-03-13 12:14:33 -03:00
Maurício Szabo
6978978b24 Updated some packages 2023-03-13 11:52:50 -03:00
Maurício Szabo
cf2a81a971 Merge branch 'clojure-highlight-with-new-improvements' into feature/electron-20 2023-03-12 14:28:31 -03:00
Maurício Szabo
db0a25bee1 Second argument is a grammar 2023-03-11 00:31:44 -03:00
Maurício Szabo
1d1bb5a9b9 Removed external promise to languageMode.ready 2023-03-11 00:23:48 -03:00
Maurício Szabo
1249012e6e Merge remote-tracking branch 'clocktower/tree-sitter-hell' into clojure-highlight-with-new-improvements 2023-03-11 00:19:26 -03:00
Maurício Szabo
2502f4d87d Allow a non-match for scope :) 2023-03-11 00:17:50 -03:00
Maurício Szabo
0b405deac7 Not tokenizing quoted lists as function calls 2023-03-11 00:17:34 -03:00
Maurício Szabo
bce60e749c Fixed matching of <- tests 2023-03-11 00:09:06 -03:00
Maurício Szabo
2bfc7e72aa Removed punctuation for strings 2023-03-11 00:08:52 -03:00
Maurício Szabo
a5ab58d903 Fixed meta.expression 2023-03-11 00:08:45 -03:00
Andrew Dupont
137f6f3d61 Fix for the fix. 2023-03-10 19:04:09 -08:00
Maurício Szabo
c3d41f2f29 Removed double resolve 2023-03-10 23:59:00 -03:00
Andrew Dupont
58fe890188 Ensure all tree-sitter language-loading is async 2023-03-10 18:22:13 -08:00
Maurício Szabo
983278cf9a Merge remote-tracking branch 'clocktower/tree-sitter-hell' into clojure-highlight-with-new-improvements 2023-03-10 22:21:39 -03:00
Maurício Szabo
3d6a93ed59 Remove focus 2023-03-10 22:11:44 -03:00
Maurício Szabo
85f1b2cd35 Clojure folds 2023-03-10 22:11:05 -03:00
Maurício Szabo
7223a568f4 Moving Jasmine tests to core 2023-03-10 21:58:42 -03:00
Andrew Dupont
8ad6e8c719 Various fixes. 2023-03-10 16:51:30 -08:00
Andrew Dupont
0528a405ef Fixes.
Some tests were failing because `web-tree-sitter` really doesn't like it when you want to highlight from rows `0` to `Infinity`.
2023-03-10 16:39:56 -08:00
Andrew Dupont
c9d460ec92 Fix ScopeResolver predicates. 2023-03-10 16:37:25 -08:00
Andrew Dupont
d1b132dbf5 Fix detectCoveredScope
In EJS I ran into a situation that clearly was a false positive for the
`detectCoveredScope` test.

I am almost certain now that this should not be left up to a heuristic;
there should just be a `coverParentScope` option in
`atom.grammars.addInjectionPoint` so that it can be handled on a
case-by-case basis.

Regex injections will want to cover parent scopes; the `language-todo` and
`language-hyperlink` injections likely will not. And if an injection wants
to cover the parent, it should cover the parent _entirely_, not just when
their boundaries happen to line up.
2023-03-10 16:37:02 -08:00
Maurício Szabo
64ff7f4911 Merge remote-tracking branch 'clocktower/tree-sitter-hell' into clojure-highlight-with-new-improvements 2023-03-10 20:56:09 -03:00
Andrew Dupont
4204b89ffe Add syntax node traversal APIs…
…thus enabling `editor:select-larger-syntax-node` and its friends.
2023-03-09 20:09:21 -08:00
Maurício Szabo
4d0992051b Tokenizing #_ spec 2023-03-09 23:25:26 -03:00
Maurício Szabo
84d4e9b8b3 Back to using languageMode.ready
Just to document this: I tried a HUGE amount of ideas for tests to run
reliably. They need to wait for the editor when it's ready to be
tokenized, but our callbacks are not that reliable - meaning, for the
first tokenization on tree-sitter, they are called _after_ we register
the callback, but for the second time, they are called _before_ we
register them. There's no reliable way to _actually listen_ to changes,
and none of these even were _called_ by TextMate grammars.

So, this `.ready` will stay here so we know when TreeSitter is ready to
tokenize.
2023-03-09 23:22:25 -03:00
Maurício Szabo
8abf3b6b06 Specific tree-sitter tokens 2023-03-09 22:53:46 -03:00
Maurício Szabo
4ba385dd75 Comment forms 2023-03-09 22:48:01 -03:00
Maurício Szabo
1d755afb45 Anon tokenizer 2023-03-09 22:34:47 -03:00
Andrew Dupont
18f18c0328 Attempt to fix exceptions encountered during specs 2023-03-09 17:28:37 -08:00
Maurício Szabo
17170fffbb Merge branch 'fix-ruby-tree-sitter-scopes-with-right-tokens' into clojure-highlight 2023-03-09 19:34:41 -03:00
Andrew Dupont
744c146355 Merge fix-ruby-tree-sitter-scopes-with-right-tokens 2023-03-09 14:07:41 -08:00
Andrew Dupont
0bfe555e4b Lots of fixes…
…for folds, indents, and the like. Some experiments with locals queries.
2023-03-09 14:01:48 -08:00
Maurício Szabo
e918d32cad Removed some debug info 2023-03-09 11:10:26 -03:00
Maurício Szabo
21d007d112 Lockfile update 2023-03-09 11:09:21 -03:00
Maurício Szabo
530310418b Adding a tokenizer spec for Ruby grammars 2023-03-08 21:59:07 -03:00
Maurício Szabo
478a35d968 Fixed some bugs on the TextMate Grammar 2023-03-08 21:58:51 -03:00
Maurício Szabo
28a3ec14c2 More fixes to Ruby grammar 2023-03-08 21:58:42 -03:00
Maurício Szabo
293d83697b Adding some more specific test 2023-03-08 21:25:08 -03:00
Maurício Szabo
192a7397c1 Sanity check for matching scopes 2023-03-08 21:14:48 -03:00
Maurício Szabo
ad296d37a2 Merge remote-tracking branch 'clocktower/tree-sitter-hell' into fix-ruby-tree-sitter-scopes-with-right-tokens 2023-03-08 20:01:32 -03:00
Maurício Szabo
100ca5a6d7 Adding a ready promise 2023-03-08 19:59:58 -03:00
Maurício Szabo
6a8cc16617 Adding highlight files for Clojure 2023-03-08 16:05:38 -03:00
Maurício Szabo
815b66c9dd Revert adding a hook for highlight 2023-03-07 14:41:14 -03:00
Andrew Dupont
c2e44b4c5c Don't force a parse just to do folds (this was dumb of me) 2023-03-06 22:02:05 -08:00
Andrew Dupont
bea325285e Get indents and folds working again 2023-03-06 19:11:37 -08:00
Andrew Dupont
67f7fb7a9f Get injections working.
Preliminary. Folds and indents are broken at the moment.
2023-03-06 18:12:09 -08:00
Maurício Szabo
77de02a935 Make require the same as TextMate 2023-03-06 22:34:40 -03:00
Maurício Szabo
ebf4d77c6b More fixes to highlights 2023-03-06 22:33:02 -03:00
Maurício Szabo
600679896c Adding a hook for did-change-highlighting 2023-03-06 22:12:44 -03:00