1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-25 21:39:02 +02:00

642 Commits

Author SHA1 Message Date
silverwind
aecedef97d Rename 'Base Makefile' lexer to 'Makefile' v2.4.0 2022-11-15 18:57:46 +11:00
silverwind
740e4b85b2 Add systemd .service and .socket to ini lexer
I think these should be pretty un-ambigous. There are more
systemd-related file extensions, but I'm less sure about them, so I left
them out.

Ref: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
2022-11-15 07:45:37 +11:00
John Roos
f07788e465
More improvements to PowerShell lexer () 2022-11-14 11:52:16 -08:00
SerHack
94d785889c
Create Onedark theme () 2022-11-13 00:11:15 -08:00
John Roos
42e542114b
Improved PowerShell lexer () 2022-11-10 20:53:36 -08:00
SerHack
16fd66634d
Fix a bug that ate functions ;) () 2022-11-11 06:05:58 +11:00
SerHack
ee9558d7ac Update c.xml 2022-11-10 08:24:13 +11:00
mhmdanas
877797e70d fix: add CSS gap property 2022-11-08 21:31:42 +11:00
Hannu Hartikainen
5644f41865
Add lexer for BQN ()
Based on the Vim syntax highlighting by Marshall Lochbaum[[0]], with number
parsing from PrismJS highlighter by Christopher Rodriguez[[1]].

The lexed types are selected to be as descriptive as possible while
retaining similar groupings to the Vim highlighter, so the highlighted
code looks familiar to BQN users.

[0]: a436a71a08/editors/vim/syntax/bqn.vim
[1]: 859f99a042
2022-11-08 21:25:43 +11:00
l-m
71d4be6869
Lexer support for the stas language () 2022-11-07 21:47:32 +11:00
Gianni Lerro
be4aebd830
Add Vala Lexer () 2022-11-04 17:44:46 -07:00
Martin Winandy
d6ea504031 Classify object names and enum names as class names 2022-11-03 07:42:39 +11:00
Martin Winandy
6ca7db7019 Fix typo 2022-11-03 07:41:53 +11:00
Kien Nguyen
be6230cf6e Update Rose-pine style 2022-11-03 07:41:31 +11:00
Alec Thomas
ebba7013b3 feat: add MustNewXMLStyle 2022-11-02 15:40:25 +11:00
Alec Thomas
c263f6fa19
feat: XML style definitions ()
Fixes .
2022-11-01 21:23:14 -07:00
Alec Thomas
b2643973d2 fix: ensure HTML flags apply to --html-styles
Fixes 
2022-11-01 19:08:21 +11:00
Alec Thomas
d0e811c0ef
fix: use a class with line links when requested ()
Fixes 
2022-10-31 23:28:30 -07:00
John Olheiser
5e27ea4aaf
Update Catppuccin for all variants () 2022-10-30 16:08:41 -07:00
Maas Lalani
f0bac8cfd0
Lexer for VHS () 2022-10-28 14:52:43 -07:00
Alec Thomas
06f7007f02 Update READMEs to be more obvious about XML lexers. 2022-10-28 20:54:42 +11:00
Kien Nguyen-Tuan
9b9b245fb6
Feat: Add Rosé-Pine variants () 2022-10-22 09:36:21 +11:00
cjprieb
b2a2ba5a50
added lexer for PSL () 2022-10-18 15:57:56 -07:00
Alec Thomas
40b7a9135a Upgrade project to Go 1.19 and switch to alecthomas/assert/v2 2022-10-18 08:55:38 +11:00
jolheiser
b338844a9a add catppuccin mocha
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2022-10-15 18:51:55 +11:00
Thomas Voss
b7c7bdbe65
Add a lexer for sed () 2022-10-07 18:19:15 -07:00
Maxime Mangel
5559bcca67 Add support for F# open static class 2022-10-06 19:38:59 +11:00
mhmdanas
396f5726a4 fix: parse all of @foo.bar as a Python decorator 2022-10-06 11:23:23 +11:00
mhmdanas
750df9844d style: reformat Whiley expected testdata
Running `RECORD=true go test ./lexers` reformats this file for me.
2022-10-06 11:22:29 +11:00
smf007
d0d94c2169 Revise the fortran lexer to correctly flag whitespace for "DO CONCURRENT" and "GO TO", and to correctly flag the word boundary of keywords. 2022-10-06 11:16:01 +11:00
Jelle Hulter
c56819b5da
Fixed OpenEdgeABL String literals ()
When OpenEdge ABL runs on Windows, the tilde is used as an escape character instead of a backslash as in most common programming languages. On UNIX platforms, the backslash is also an escape character. But because we cannot know the running platform, it seems better to only use the tilde as a backslash character. (source: https://knowledgebase.progress.com/articles/Article/P27229)
2022-10-05 17:15:25 -07:00
Kenneth Shaw
48a2af1145 Update UsingByGroup documentation
Bringing into line the documentation with the changed API for
UsingByGroup.
2022-10-06 11:14:26 +11:00
Forest0923
739028eb93 Add pygments2chroma_xml.py
This script automatically generates a lexer in xml format from Pygments.
2022-10-06 11:13:43 +11:00
KOBAYASHI Yū
65c601bb6f
Add HLSL language support () 2022-10-05 17:12:32 -07:00
xjzi
cbe8b53db7 Add Modus Operandi (light) theme 2022-10-06 09:11:33 +11:00
xjzi
5b957aac0a Add Modus Vivendi (dark) theme 2022-10-06 09:11:33 +11:00
silverwind
f3aeb99ea9 Add .editorconfig
Add a basic .editorconfig file so that my editor stops inserting final
newlines into the lexer .xml files which do not have them.
2022-10-06 09:07:21 +11:00
silverwind
1da7ff5150 Add .pylintrc to ini lexer
Reference: https://pylint.pycqa.org/en/latest/user_guide/usage/run.html#command-line-options
2022-10-06 09:07:06 +11:00
Jon Eskin
d38b87110b Add linkable line number option to CLI 2022-10-03 10:17:42 +11:00
silverwind
9ac9b1158f
Add .mts,.cts to typescript lexer ()
See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-7.html#new-file-extensions
2022-09-30 03:11:20 -07:00
Martin Winandy
6138519d55
Add properties to supported languages () v2.3.0 2022-09-16 01:14:11 -07:00
Martin Winandy
a238967fc0
Improve properties file lexer () 2022-09-07 16:34:23 -07:00
Martin Winandy
a531e40eee
Add lexer for properties files () 2022-09-02 23:43:41 -07:00
Daniel Erat
dbb09a52a8 Add Colour.ClampBrightness and StyleBuilder.Transform.
These functions can make it easier to to update a style's
contrast when viewed against light and dark backgrounds.
See .

Also avoid a segfault when Get is called on a StyleBuilder
that was created using NewStyleBuilder (as opposed to
Style.Builder).
2022-08-31 22:20:56 +10:00
exploide
e1a35d4eea transact-sql: added functions string_agg and concat_ws to lexer 2022-08-29 08:06:33 +10:00
Hemanta Sapkota
3f86ac7554 Add Gruvbox light theme 2022-08-25 21:26:57 +10:00
Toshimaru
d55b06c6fc
Bump testify, repr to the latest version ()
* Bump testify to v1.8.0

* Bump repr to v0.1.0
2022-08-24 19:55:03 -07:00
Masahiro Mori
4fa270a0e5
Update GAS lexer () 2022-08-22 03:29:10 -07:00
Koki Fukuda
cde381803a Update mcfunction lexer to support newer spec of commands 2022-08-19 18:28:50 +10:00
Ole Herman Schumacher Elgesem
6538430570 cfengine3: Removed rule attempting to highlight variable names
This rule is problematic for 2 reasons:
* The regex is buggy, it doesn't work for more advanced cases
  when there are other attributes before slist, or string, or
  whatever the type is.
* In the context of CFEngine policy language, it's just a bit
  confusing. Yes, they are variable names, but they are also
  quoted strings, and what we call promisers. It looks better,
  more consistent and less confusing if they are highlighted
  in the same way as other strings and promisers.

Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
2022-08-13 07:20:32 +10:00