Commit Graph

2159 Commits

Author SHA1 Message Date
Marijn Haverbeke b7b1bbcb96 [crystal mode] Fix an infinite loop in tokenizing of heredoc strings
Closes https://github.com/codemirror/codemirror5/issues/7092
2024-04-03 14:56:27 +02:00
Marijn Haverbeke adc4282471 [jsx mode] Narrow test for trailing-comma generic
Issue https://github.com/codemirror/codemirror5/pull/7073
2023-10-27 10:34:30 +02:00
Luke Haas bcb86262e8 [jsx mode] Support trailing-comma generics syntax in JSX with TS
Issue https://github.com/codemirror/codemirror5/pull/7073
2023-10-27 10:34:26 +02:00
Parker Lougheed 53faa33ac6
[dart mdoe] Fix code example to compile and run with modern Dart versions 2023-09-10 17:36:12 +02:00
Parker Lougheed ee6a1d201f
[dart mode] Remove support for inline keyword 2023-09-10 17:35:37 +02:00
Marijn Haverbeke 638abda97c [go mode] Allow underscore separators in numbers
Closes https://github.com/codemirror/codemirror5/issues/7059
2023-09-01 08:56:11 +02:00
Marijn Haverbeke 4ea5f46558 [yaml mode] Fix exponential regexp
Closes https://github.com/codemirror/codemirror5/issues/7053
2023-08-09 22:54:39 +02:00
Marijn Haverbeke 69e38f574c [java mode] Fix indentation after class extends clause
Closes https://github.com/codemirror/codemirror5/issues/7049
2023-07-15 09:01:06 +02:00
Jan T. Sott a0854c752a
[nsis mode] Add !assert command 2023-07-03 09:54:01 +02:00
Marijn Haverbeke 9974ded36b [clike mode] Properly match character literals in Scala mode 2023-03-16 18:03:27 +01:00
Brett Morgan c17c5f0abe
[dart mode] Add `inline` keyword for inline classes
Context: https://github.com/dart-lang/language/blob/master/accepted/future-releases/inline-classes/feature-specification.md

Related: https://github.com/dart-lang/sdk/issues/49734
2023-03-08 11:26:18 +01:00
Brett Morgan 6a705898e7
[dart mode] Add keywords 2023-03-03 00:10:22 +01:00
Marijn Haverbeke 658bff7c56 [sql mode] Make sure 'with' is highlighted as a keyword for PostgreSQL
Closes https://github.com/codemirror/codemirror5/issues/7022
2023-02-24 08:40:47 +01:00
yoyoyodog123 659df46b1f
[python mode] Add new built-in functions
- Aiter (added in 3.10)
- Anext (added in 3.10)
- Breakpoint (added in 3.7)
2023-02-14 18:44:36 +01:00
Marijn Haverbeke 9e864a1bb7 Remove trailing whitespace 2022-12-23 10:17:29 +01:00
yoyoyodog123 d4a6699187
[python mode] Add match/case to py3 keywords 2022-12-23 10:07:17 +01:00
Marijn Haverbeke d122e55c48 [sql mode] Always enable tokenizing of dot-prefixed names 2022-12-08 08:35:48 +01:00
DoctorKrolic 349c8a6c7a
[clike mode] Add new C# keywords 2022-11-29 16:58:47 +01:00
Marijn Haverbeke 742627abca [sql-hint addon] Fix retrieving of parser config 2022-11-15 09:36:27 +01:00
Marijn Haverbeke 2e3df70d4c [pegjs mode] Remove useless lines 2022-11-15 01:32:23 +01:00
Marijn Haverbeke 9296326b0a [javascript mode] Fix recognition of class property keywords before private names
Closes https://github.com/codemirror/codemirror5/issues/6996
2022-10-26 14:24:27 +02:00
Mark Boyes e1fe2100d0
[sparql mode] Identify all characters in prefixes 2022-10-06 13:52:06 +02:00
Jan T. Sott ec72109ace [nsis mode] add ${Case} variants
Reference: https://nsis.sourceforge.io/LogicLib
2022-09-08 13:11:36 +02:00
Marijn Haverbeke 264ba931c4 [swift mode] Fix tokenizing of block comments
Closes https://github.com/codemirror/codemirror5/issues/6981
2022-09-06 15:15:02 +02:00
Marijn Haverbeke f1430486d9 [jinja2 mode] Remove tab
Issue https://github.com/codemirror/codemirror5/pull/6975
2022-08-26 12:20:21 +02:00
Marijn Haverbeke 0ade73a9ea [jinja2 mode] Remove trailing whitespace
Issue https://github.com/codemirror/codemirror5/pull/6975
2022-08-26 12:17:11 +02:00
Vladislav Voitenok b7460f6b8d
[jinja2 mode] Support line statements 2022-08-26 12:10:09 +02:00
Marijn Haverbeke 9670ccf3b1 Add missing closing paren 2022-08-01 15:54:31 +02:00
Marijn Haverbeke 84bb7bfc4e [python mode] Add exec and print to hintWords
Closes https://github.com/codemirror/codemirror5/issues/6969
2022-08-01 15:52:17 +02:00
Boris Verkhovskiy 638951ee8f [sql mode] Trino SQL 2022-07-18 17:00:58 +02:00
Boris Verkhovskiy c401c299ce
[sql mode] Support empty number literals 2022-07-13 19:53:39 +02:00
Jan T. Sott 482b7a4554
[nsis mode] add Target command 2022-07-13 00:58:06 +02:00
Boris Verkhovskiy d77d0b864d
[sql mode] Document other support values of sql modes 2022-07-13 00:56:57 +02:00
Marijn Haverbeke 52dc64004c Delete trailing whitespace 2022-07-01 07:53:51 +02:00
Pontus Granström 2e50c90658
[elm mode] Add support for line comments
This lets a user toggle comments with a keyboard shortcut when using codemirror to edit Elm code.
2022-07-01 07:41:44 +02:00
fzipp 8216951fbe [go mode] Add new builtin types `any` and `comparable`
Go 1.18 introduced two new predeclared identifiers: `any` and `comparable`:
https://go.dev/doc/go1.18#generics
2022-06-30 19:51:13 +02:00
Erik Krogh Kristensen c722d1b4e2
[css mode] Fix the char ranges identifying valid colors 2022-06-24 19:43:44 +02:00
Mark Boyes 5bc5321efa
[sparql mode] Add INTO keyword 2022-06-23 08:23:15 +02:00
Yakov Manshin 2ca1993b1a
[swift mode] Support for Structured Concurrency keywords
Closes #6937
2022-06-13 10:25:29 +02:00
Marijn Haverbeke 7f488eb5c1 Adjust website and github links to include '5' 2022-06-08 09:58:57 +02:00
Marijn Haverbeke 70572f115b [ruby mode] Don't add extra indentation on 'then'
Closes https://github.com/codemirror/CodeMirror/issues/6927
2022-06-03 08:29:22 +02:00
Marijn Haverbeke e71f6843ad [julia mode] Properly tokenize \!==, ===, and = operators
Issue https://github.com/codemirror/CodeMirror/issues/6913
2022-05-21 10:12:26 +02:00
Mark Boyes c955a0fb02
[spaqrl mode] Fix parsing of veriables after operators
Question-mark characters should only be styled as operators within triple patterns. For example the command

SELECT * WHERE { BIND(?A+?B AS ?C) }

should not have the "+?" sequence styled as "operator".  NB the problem does not occur if there is a space between these two characters.
With the fix "?A" and "?B" will both be styled as variable-2 (and "+" as operator).

By processing operators characters (mostly) one at a time,  the existing code on line 40 to zealously interpret anything beginning with '?' as a variable can run in this case. 

NB Line 40 actually causes a false positive in the case where the '?' appears in a triple pattern as a property path operator: this fix does not address this existing bug: it is quite complicated as '?' can appear in both variables and property paths while the parser is in the "pattern" state.
2022-05-06 16:47:16 +02:00
Marijn Haverbeke 3c4877adf3 [julia mode] Recognize === and !== operators
Closes https://github.com/codemirror/CodeMirror/issues/6913
2022-04-28 18:22:06 +02:00
Ziran Sun d053a590d5 Remove some unimplement/used appearance keywords.
These keywords are not implemented in WebKit/Chromium/FireFox. Suggest to remove them.
Ref:
[1] https://chromium-review.googlesource.com/c/chromium/src/+/1529972
[2] https://bugs.webkit.org/show_bug.cgi?id=238501
[3] https://wpt.fyi/results/css/css-ui/appearance-cssom-001.html?sha=117f23cf77&label=master&max-count=1
2022-04-26 13:52:44 +02:00
kazk 16438e1406 Fix Java textblock syntax 2022-04-13 10:48:51 +02:00
Marijn Haverbeke a3e9c5379b [groovy mode] Highlight interpolated variables without braces
Closes https://github.com/codemirror/CodeMirror/issues/6899
2022-03-25 08:01:25 +01:00
James Baicoianu 8f42af2d6f Fixed escaping in double-quote regex string 2022-02-01 11:17:41 +01:00
Marijn Haverbeke 64b0dae465 [clike mode] Support triple-quoted string in Java mode
Closes https://github.com/codemirror/CodeMirror/issues/6873
2022-01-30 13:41:39 +01:00
Marijn Haverbeke c65a95dc6b [cypher mode] Fix broken handling of punctuation
Closes https://github.com/codemirror/CodeMirror/issues/6872
2022-01-27 16:05:08 +01:00