FrayxRulez
94640c63c2
Update grammars
2026-10-31 13:21:55 +04:00
Fela
eb7b8d986b
Replace Prism's Kotlin grammar with one of our own
2026-10-31 13:20:35 +04:00
Fela
7f49b671a0
Bound tokenizing to a number of regex searches per byte of text
2026-10-31 12:48:18 +04:00
Fela
72915bdf1a
Reuse a greedy pattern's last search over the same text
2026-10-31 12:41:56 +04:00
Fela
1dc209ae0f
Make tokenize safe to call from several threads at once
2026-10-31 12:39:08 +04:00
Fela
95ddb98b1b
Let a greedy search see the text before its start
2026-10-31 12:36:27 +04:00
Fela
67a17ec2b2
Revert the wall-clock deadline on highlighting
2026-10-31 12:34:32 +04:00
tmacos
10b7536410
Bound syntax highlighting work for untrusted code blocks
2026-10-30 22:48:17 +04:00
FrayxRulez
086296336c
Update grammars
2026-10-29 13:44:41 +04:00
Fela
4f8254d7b0
Highlight the code in a diff in the language its file names say
2026-10-29 13:40:57 +04:00
Fela
6b50a93eb1
Highlight the code in a diff as the language named after diff-
2026-10-29 13:40:50 +04:00
Fela
d74f039056
Group each language with its aliases
2026-10-15 13:34:53 +04:00
Fela
8590fe45fa
Add CMake build
2026-10-12 12:56:44 +04:00
John Preston
31a5d6fbbe
Fix highlight regressions.
2026-09-29 16:55:32 +04:00
John Preston
ca59e6434e
Merge remote-tracking branch 'upstream/master' into HEAD
2026-09-29 16:30:43 +04:00
John Preston
75f26c1730
Fix possible infinite recursion.
2026-09-29 16:26:33 +04:00
FrayxRulez
07ff1fcc7a
Update grammars
2026-09-21 12:59:15 +04:00
Fela
2f9ca450d2
Check every pattern against both regex engines on a pull request
2026-09-21 12:58:16 +04:00
Fela
d007354e40
Escape characters a pattern cannot carry as bytes
2026-09-21 12:58:16 +04:00
FrayxRulez
8b3e2ccf6e
Update grammars
2026-09-21 12:47:47 +04:00
Fela
4578af1867
Give an alias the language title when it has none of its own
2026-09-21 12:44:49 +04:00
Fela
e84126af03
Expand unicode escapes Boost does not read
2026-09-21 12:43:34 +04:00
Fela
13eefe37b6
Escape regex constructs that java.util.regex reads differently
2026-09-21 11:56:17 +04:00
FrayxRulez
a0f55d9ec7
Update grammars
2026-09-21 11:22:55 +04:00
Fela
79d5518b8d
Register fc as a FunC alias
2026-09-21 10:47:16 +04:00
Fela
58c31b6872
Fix the FunC operator function pattern
2026-09-21 10:47:16 +04:00
Novus Nota
2236ba10f8
feat: update Tact to 1.6.0
2026-09-21 10:47:16 +04:00
Novus Nota
fb9726c9f7
feat: update Tact from 1.2.0 to 1.5.0
2026-09-21 10:47:16 +04:00
Novus Nota
a4fe237d3e
feat: update FunC from 0.2.0 to 0.4.4 and significantly enhance its capabilities
2026-09-21 10:47:16 +04:00
Danil Ovchinnikov
d458c1d5f4
feat: use local prismjs package for grammar generation
2026-09-21 10:46:52 +04:00
Fela
2060940e82
Mark grammars.dat as generated
2026-09-21 10:46:37 +04:00
Fela
4e929ca5ba
Reject pull requests that modify grammars.dat
2026-09-21 10:46:37 +04:00
Fela
f59232fa12
Regenerate grammars on push to master
2026-09-21 10:46:37 +04:00
Fela
8e92679cca
Update workflow actions to supported versions
2026-09-21 10:46:37 +04:00
Danil Ovchinnikov
3752c51e7c
feat: add support Tolk grammar ( #43 )
2026-09-21 10:07:32 +04:00
Novus Nota
bd15682b7b
Added Tact, FunC, Fift, TL-B support ( #13 )
...
* Added Tact, FunC, Fift, TL-B support
Whose are the common languages of [TON](https://ton.org ).
* chore: Updated list of supported languages
* feat: support Tact 1.3.0
2024-05-28 17:19:54 +04:00
John Preston
23b0d70f97
Catch exceptions, they happen.
2024-04-15 17:36:08 +04:00
Fela
5dd5b63780
Language display name
2024-01-29 12:46:51 +04:00
Fela
37f0b2f26d
Lazy load patterns
2023-12-20 17:19:42 +04:00
github-actions[bot] and FrayxRulez
adf35ba881
Update grammars ( #5 )
...
Co-authored-by: FrayxRulez <FrayxRulez@users.noreply.github.com >
2023-11-20 17:34:22 +04:00
Fela
c84ef66a01
Added TL support
2023-11-20 15:26:49 +04:00
Mikhail Dunaev and Fela Ameghino
247842358e
Add script for generating grammars.dat and setup CI ( #2 )
...
* Make script work in node.js. The function `generate()` now just returns the blob.
* Log which language is loading right now
* Add GitHub action script for build and publish grammars.dat as artifact
* Add Create Pull Request workflow
* Update README.md
Co-authored-by: Fela Ameghino <frayx@live.it >
2023-10-30 17:41:57 +04:00
Fela Ameghino
e68694136c
Added list of supported languages
2023-10-23 16:17:20 +04:00
Fela
629dc69fbf
Add display name to pure aliases too
2023-10-13 15:17:23 +02:00
Fela
f1754c90d9
Added display names
2023-10-13 15:02:36 +02:00
Fela
7f62494bb8
Extend supported languages, dynamic generate
2023-10-10 15:29:40 +04:00
John Preston
16954ab5e9
Fix build with GCC 11.
2023-10-08 07:00:34 +04:00
John Preston
b9a1ed1a19
Remove not needed <format> include.
2023-10-06 14:42:43 +04:00
John Preston
4521ec4dac
Still accept grammars content, not file path.
2023-10-04 21:21:55 +04:00
Fela
447b037287
Included generation script
2023-10-04 20:33:46 +04:00