Alec Thomas
c4527e8d5c
fix: C++ comments after #include
...
Fixes #841
v2.9.1
2023-09-09 13:08:27 +10:00
Alec Thomas
40542a6255
refactor: migrate a bunch more Go-based lexers to XML
...
Also rename some existing XML lexers to their canonical XML name.
v2.9.0
2023-09-09 12:29:23 +10:00
Alec Thomas
4dd2cbef84
fix: bump to latest dclark/regexp2
...
Fixes #805
2023-09-09 11:46:52 +10:00
SerHack
a242abf7af
Highlights numbers in java ( #703 )
2023-09-09 11:39:30 +10:00
Aniket Teredesai
6ddeee28d9
update fg color to match latest primer style ( #781 )
2023-09-09 11:38:14 +10:00
Alan Hamlett
340fd85fd2
Add more hlsl file extensions ( #823 )
...
To match GitHub's linguist 916bd8f3df/lib/linguist/languages.yml (L2623)
2023-09-09 11:37:13 +10:00
rome-user
67983f9b27
Update clojure.xml to target EDN ( #825 )
...
These changes allow EDN files, together with the commonly used
`application/edn` MIME type, to be highlighted as Clojure syntax.
2023-09-09 11:36:58 +10:00
Andrew Moore
6428fb4e65
Added updated GDScript lexer. ( #842 )
2023-09-05 07:33:36 +10:00
Carlos Henrique Guardão Gandarez
4796a27270
Set priority for NASM lexer ( #839 )
2023-08-27 07:56:57 +10:00
Carlos Henrique Guardão Gandarez
be65257e7e
Set priority for INI lexer over Inform 6 ( #837 )
2023-08-25 10:32:44 +10:00
Carlos Henrique Guardão Gandarez
b5487f4e33
Fix Bash Session lexer name ( #840 )
2023-08-25 10:27:31 +10:00
Carlos Henrique Guardão Gandarez
c03a781c57
Set priority for GAS lexer ( #838 )
2023-08-24 23:49:26 +10:00
Carlos Henrique Guardão Gandarez
0fe72e12f1
Add new file extensions to Mathematica lexer ( #836 )
2023-08-24 23:46:43 +10:00
Carlos Henrique Guardão Gandarez
5b26de04bf
Add missing *.twig file extension ( #833 )
2023-08-24 11:45:43 +10:00
Carlos Henrique Guardão Gandarez
967600379d
R lexer has priority over Rebol ( #835 )
2023-08-24 11:45:24 +10:00
Carlos Henrique Guardão Gandarez
efd5efa266
Avoid duplicate lexer if already registered ( #834 )
2023-08-24 11:44:53 +10:00
Carlos Henrique Guardão Gandarez
954c5ae915
feat: ensure the analyse score is up to 1.0 ( #832 )
2023-08-24 06:31:46 +10:00
Carlos Henrique Guardão Gandarez
708662a581
feat: improve regex analysers in XML ( #831 )
2023-08-23 11:51:13 +10:00
Abe Estrada
d37de78b18
feat(styles/onedark): add diff colors ( #830 )
2023-08-23 07:28:31 +10:00
Eli Bendersky
c11725d832
Add new Go 1.21 builtins to the Go lexer: clear, min, max ( #829 )
2023-08-23 06:35:37 +10:00
Alec Thomas
47ce9a21b1
fix: vim lexer was marking \n
as errors
...
Fixes #827
2023-08-22 08:39:01 +10:00
Alec Thomas
a20cd7e8df
feat: support basic regex analysers in XML ( #828 )
...
The `<analyse>` element contains a regex to match against the input, and
a score if the pattern matches.
The scores of all matching patterns for a lexer are summed.
Replaces #815 , #813 and #826 .
2023-08-22 05:32:23 +10:00
Carlos Henrique Guardão Gandarez
22266635c1
Fix ISCdhcpd filename ( #822 )
2023-08-19 08:34:51 +10:00
Carlos Henrique Guardão Gandarez
7d74956fb2
Add Pipfile and poetry.lock as a TOML lexer file extension ( #821 )
2023-08-19 07:02:21 +10:00
Carlos Henrique Guardão Gandarez
42d6da2d90
Add .eex as a Elixir lexer file extension ( #820 )
2023-08-19 07:01:46 +10:00
Carlos Henrique Guardão Gandarez
b786c3fa60
Add .tpp as a c++ lexer file extension ( #817 )
2023-08-18 23:02:13 +10:00
Carlos Henrique Guardão Gandarez
de3a9c2ec5
Add C lexer ( #815 )
2023-08-18 22:44:35 +10:00
Carlos Henrique Guardão Gandarez
49b5f8eb34
Add missing C++ tests ( #814 )
2023-08-18 22:41:54 +10:00
Carlos Henrique Guardão Gandarez
e6de3d1f1a
Add CPP lexer ( #813 )
2023-08-18 12:54:52 +10:00
Alan Hamlett
68d976f00b
Prevent panic from hax lexer ( #812 )
...
Prevents `runtime error: slice bounds out of range` when list is empty.
2023-08-16 07:50:03 +10:00
Christian Woltering
2aad7403e6
Update C# lexer ( #811 )
...
* Fix CommentPreproc regex (and update corresponding test)
* Separate KeywordDeclaration and KeywordConstant from Keyword list (similar to Java lexer).
* Update csharp lexer tests.
* Remove duplicate keyword 'static' from csharp lexer.
2023-08-16 07:46:32 +10:00
Toshimaru
9864526122
deps: update go modules ( #810 )
2023-08-13 10:46:59 +10:00
Guillaume Laforge
95cec3b2df
Update groovy.xml ( #807 )
...
Added var as an alternative to def
Now enum, trait, record, are types just like class and interface
2023-08-03 18:21:07 +10:00
Dustin
555bb53ad9
Add Lexer for Sourcepawn ( #804 )
2023-07-22 08:57:19 +10:00
Ian Simonson
b8c853d742
Fix attributes and <, > in Odin Lexer ( #803 )
2023-07-21 10:26:33 +10:00
Ian Simonson
e1e698df6d
Add Odin lexer ( #802 )
...
* Add Odin lexer
Adds the odin.xml rules for a lexer along with odin.actual and
odin.expected
Should handle the majority of Odin syntax well enough including nested comments.
However for now I have just left attributes as one token rather than sub-parsing
the @(x = y) to be multiple tokens
* Revert hlsl, natural, and vhs.expected back to master
These upated when I was generating odin.expected. I am
not sure if it is better to update these as well or leave it
so I figured I would leave for now
* Add the sized bool types and all the big/little endian int types
Odin has a number of other built in integer types that are not
in most other languages. Make sure those are included
2023-07-20 07:51:54 +10:00
guangwu
b8ad4d6cab
chore: unnecessary use of fmt.Sprintf ( #799 )
2023-07-10 18:42:13 +10:00
guangwu
b9a63eb4f0
chore: remove refs to deprecated io/ioutil ( #798 )
2023-07-10 18:42:01 +10:00
Aniket Teredesai
0e7ec95a1d
styles/catppuccin-*: update colors ( #797 )
2023-07-06 07:30:02 +10:00
executter
971f5c6a5d
Add file support for BIND DNS Zone ( #796 )
...
Support for .zone extension:
https://en.wikipedia.org/wiki/Zone_file
2023-06-30 21:19:21 +10:00
Simran
e8acfc274c
Add lexer for ArangoDB Query Language (AQL) ( #794 )
...
* Add ArangoDB Query Language (AQL) lexer
v2.8.0
2023-06-30 08:43:39 +10:00
Dave VanEe
e422a6286f
Add tal (uxntal) lexer
2023-05-05 13:39:45 +10:00
Vladimir Panteleev
4b11965d8e
lexers/d: Update keyword lists
2023-05-03 12:25:39 +10:00
Skyler
be82a0bffd
improve PSL directive and function highlighting
2023-05-03 11:37:11 +10:00
Alexandru Bucur
bf8d359499
FIX: update nord theme to have a base color for NameProperty
...
Right now there is no value for NameProperty making .chroma .py to be empty.
Because of that there are cases in which the color is wrongly used because it's not overwritten (for eg: when trying to use a light theme as the main one, and Nord under prefers-color-scheme: dark .
This sets the color to match the one from the theme preview that is applied for the methods
2023-05-02 07:16:31 +10:00
Alexandru Bucur
f720d5a474
FIX: update nord theme to have a base color for NameOther
...
Right now there is no value for NameOther making .chroma .nx to be empty.
Because of that there are cases in which the color is wrongly used because it's not overwritten (for eg: when trying to use a light theme as the main one, and Nord under prefers-color-scheme: dark .
This MR sets the color to match the one from the theme preview.
2023-05-01 07:17:34 +10:00
yhw
3c21942824
support http response with no reason phrase
2023-04-09 16:17:40 +10:00
Abdurrahman Aborazmeh
029798b351
Add AutoIt Lexer
2023-04-03 18:34:24 -07:00
Abdurrahman Aborazmeh
4779f9035a
Add AutoHotkey lexer
2023-04-03 18:34:24 -07:00
Joe Mooring
e09e498ede
lexers/go_template: Add missing global functions ( #782 )
...
See https://pkg.go.dev/text/template#hdr-Functions
2023-04-03 16:34:54 -07:00