Commit Graph

1545 Commits

Author SHA1 Message Date
DeeDeeG
3c60b3eba7 Changelog: grammar and copy editing for 1.118.0 entries
Consistent past tense verbs, light grammar and copy editing
2024-06-15 23:14:06 -04:00
DeeDeeG
eb2110f4d5 Changelog: Update Changelog for 1.118.0 Regular release 2024-06-15 22:43:41 -04:00
Andrew Dupont
ecbedf9f0d
Merge pull request #1010 from savetheclocktower/tree-sitter-june
Tree-sitter rolling fixes, 1.118 edition
2024-06-15 18:35:01 -07:00
Andrew Dupont
b4cba9b54d [language-typescript] Several fixes…
* Ensure private methods like `#foo` are included in lists of symbols.
* Scope `void` as a unary operator.
* Properly scope rest object properties in function definitions.
2024-06-13 14:11:00 -07:00
Andrew Dupont
ef26c588a3 [language-ruby] Fix our attempt to fold Ruby comments…
…so that it doesn’t try to look up a child node that we know won’t exist.

Most Ruby comments aren’t foldable because they start and end on the same line — by their very nature! But there is one obscure multi-line syntax that we can support, so this tells Pulsar to fold to the end of the comment itself.
2024-06-13 14:09:23 -07:00
Maurício Szabo
a797f2cda5
Fixed possible bug on extname
Co-authored-by: Andrew Dupont <github@andrewdupont.net>
2024-06-07 11:03:07 -03:00
Maurício Szabo
852483a30a Merge remote-tracking branch 'origin/master' into clojure-grammar-enhancements 2024-06-03 11:39:58 -03:00
Andrew Dupont
c04a38b39c [language-php] Update tree-sitter-php to latest…
…to gain support for type annotations on class constants, among other things.
2024-05-18 16:18:03 -07:00
Andrew Dupont
8bf199ad72 [language-php] Add a firstLineRegex
…so that the grammar-choosing logic picks the modern Tree-sitter grammar more consistently.
2024-05-18 16:04:25 -07:00
Andrew Dupont
55e869c786 [language-(java|type)script] Prevent the FOO in <FOO.Bar>
…from getting a `constant.other` scope applied.

Also ensure correct scoping of JSX tags even when the tag name is a member expression like `Foo.Bar`.
2024-05-18 15:44:04 -07:00
confused-Techie
9afc0948c1 Add new changelog 2024-05-15 19:18:38 -07:00
Andrew Dupont
217313b911
Merge pull request #984 from savetheclocktower/markdown-preview-performance
[markdown-preview] Optimize re-rendering of content in a preview pane…
2024-05-14 20:23:38 -07:00
Andrew Dupont
678c1b7bd7
Address feedback
Co-authored-by: Maurício Szabo <mauricioszabo@users.noreply.github.com>
2024-05-14 18:37:24 -07:00
Andrew Dupont
5024f052e0
Merge pull request #974 from savetheclocktower/tree-sitter-may
Tree-sitter rolling fixes, 1.117 edition
2024-05-13 22:53:46 -07:00
confused_techie
93ff819122
Update packages/README.md
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2024-05-07 07:40:39 -07:00
confused_techie
b2eff87510
Update packages/README.md
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2024-05-07 07:40:33 -07:00
Andrew Dupont
4ff4a8bd42 [language-sass] Bump tree-sitter-scss to fix a bug 2024-05-06 17:11:41 -07:00
Andrew Dupont
74589feb9c Remove the loading indicator when there's a rendering error 2024-05-05 23:30:29 -07:00
Andrew Dupont
054100b43c Rework loading indicator for markdown-preview
…and make the pane appear earlier on first open.
2024-05-05 23:30:29 -07:00
Andrew Dupont
b46a7e8e86 Don't make TextEditor instances render synchronously…
…because we don't need it for our use case. Helps performance.
2024-05-05 23:30:29 -07:00
Andrew Dupont
62a35bccad Optimize re-rendering of content in a preview pane…
…especially syntax highlighting.

This change brings in `morphdom` to allow us to be more efficient about how we apply the changes needed when the Markdown source re-renders. Instead of replacing all the content with every single change, we apply only the selective edits needed to adapt our existing markup to the target markup.

Once this process is done, we introduce one `TextEditor` instance for each `pre` tag in the markup, then persist those editor elements in the rendered output so that we don't have to spend so much time creating and destroying editors. This is a _huge_ performance win, especially in documents with lots of code blocks. The editor instances are cached using the `pre` elements as keys, which is now possible because the `pre` elements themselves are preserved across re-renders.

Editors are created when new `pre` elements appear, and are destroyed when they are no longer needed, change their contents whenever the contents of the `pre` changes, and change language modes whenever the code fence language identifier changes.

This approach is now used no matter which Markdown renderer is employed; we manage syntax highlighting ourselves in all cases rather than letting `atom.ui.markdown` do it.
2024-05-05 23:30:29 -07:00
Andrew Dupont
8e9e05db44 [language-typescript] More highlighting fixes, especially for operators 2024-05-05 22:45:41 -07:00
Andrew Dupont
3d70f62953 [language-gfm] Make each block-level HTML tag its own injection…
…which, surprising as it sounds, has a _huge_ performance benefit.
2024-05-05 22:45:41 -07:00
Andrew Dupont
6d36685df3 [language-ruby] Update to latest Tree-sitter Ruby parser 2024-05-05 22:45:41 -07:00
Andrew Dupont
5472e32e21 [language-sass] Force the TextMate grammar when running SassDoc specs 2024-05-05 22:45:41 -07:00
Andrew Dupont
da1912d1a7 [language-sass] Add SCSS Tree-sitter grammar 2024-05-05 22:45:41 -07:00
Maurício Szabo
9e70a723c7 Fixed tags 2024-04-30 19:06:11 -03:00
Maurício Szabo
781060e01b Adding a tags query 2024-04-30 15:35:52 -03:00
Maurício Szabo
bd5d1f69ae Fixed Javascript injections for Clojure 2024-04-30 12:32:47 -03:00
Maurício Szabo
10c6eb0b0c Adding Jank as an extension 2024-04-30 12:32:30 -03:00
Maurício Szabo
754dcf2cc3 Removed test for Jank 2024-04-30 12:31:31 -03:00
Maurício Szabo
c7d3a00bce Removed Jank injection (they changed the API) 2024-04-30 12:14:05 -03:00
Maurício Szabo
a2a6d3e67e Merge remote-tracking branch 'origin/master' into clojure-grammar-enhancements 2024-04-30 11:10:27 -03:00
confused-Techie
15dd4f29c0 Update packages info 2024-04-28 13:22:01 -07:00
confused-Techie
4f02ca3b71 Bundle snippets 2024-04-28 13:16:43 -07:00
Andrew Dupont
b1b6883c57
Merge pull request #973 from savetheclocktower/regenerate-github-css
[markdown-preview] Add dark mode for GitHub-style preview
2024-04-20 11:35:14 -07:00
confused-Techie
9f0e8a2c8a Stop detecting .org files as language-clojure 2024-04-17 19:29:57 -07:00
confused-Techie
2636f1e982 Add #935 2024-04-15 16:55:14 -07:00
confused-Techie
0c73a6cc84 Add 1.116.0 Changelog entries 2024-04-15 16:44:19 -07:00
Andrew Dupont
8b4fbbd23c Remove primer-markdown.less 2024-04-14 14:45:42 -07:00
Andrew Dupont
41d891582b
Merge pull request #968 from savetheclocktower/tree-sitter-april
Tree-sitter fixes (1.116 edition)
2024-04-14 13:19:42 -07:00
Andrew Dupont
2369395ba2 [markdown-preview] Add specs for GitHub light/dark themes 2024-04-14 12:58:52 -07:00
Andrew Dupont
596a3cd798 [markdown-preview] Add dark mode GitHub styles for Markdown…
…and the ability to choose a specific theme via a config setting (or use the system default).
2024-04-14 12:58:52 -07:00
Andrew Dupont
5d6af88dd7 [language-python] Fix highlighting of some constructors 2024-04-11 20:39:26 -07:00
Maurício Szabo
9bb403eb9a Fixes a possible performance issue 2024-04-11 22:00:13 -03:00
Andrew Dupont
03af1244d3 [language-python] Prevent type annotations from hinting at indents 2024-04-11 17:53:25 -07:00
Maurício Szabo
1027a51811 Merge remote-tracking branch 'origin/master' into clojure-grammar-enhancements 2024-04-11 21:53:18 -03:00
Andrew Dupont
035595d1c2 Add TextEditor specs for new getCommentDelimitersForPosition 2024-04-06 16:36:13 -07:00
Andrew Dupont
b9ee65f6a3 Add extensive comment delimiter metadata to most built-in grammars 2024-04-06 13:00:55 -07:00
DeeDeeG
ace4180d9f
Merge pull request #957 from pulsar-edit/rework-windows-path-modification
[core] (Windows) Remove all `Machine` PATH handling, add safety mechanisms
2024-04-06 15:41:43 -04:00