1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-11 13:25:37 +02:00

775 Commits

Author SHA1 Message Date
Philipp Hagenlocher
641b06ff8c
Fix type operators not being recognised in Haskell (#913) 2024-01-09 12:20:39 +11:00
renovate[bot]
3ef9475e0b
chore(deps): update dependency watchexec to v1.25.1 (#912)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-08 12:15:10 +11:00
Aniket Teredesai
23368beae6
styles(catpuccin/gh-dark): LineHighlight grp (#911) 2024-01-07 09:23:23 +11:00
Silvan Calarco
a8704a8f0b
Add lexer for RPMSpec (#907) 2024-01-03 08:45:31 +11:00
Luke Marzen
eb47752470
Add lexer for Promela (#906) 2024-01-02 16:11:09 +11:00
renovate[bot]
3f395c95ef
chore(deps): update all non-major dependencies (#905)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-01 15:08:31 +11:00
renovate[bot]
2018c2fa21
chore(deps): update all non-major dependencies (#904) 2023-12-25 13:32:55 +11:00
JakobDev
016768bc14
Add desktop entry lexer (#903) 2023-12-19 22:44:28 +11:00
renovate[bot]
f13004523b
chore(deps): update dependency watchexec to v1.24.1 (#901)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-18 12:43:06 +11:00
renovate[bot]
9670d341cc
chore(deps): update actions/checkout action to v4 (#899)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 14:39:33 +11:00
renovate[bot]
ad038174d4
chore(deps): update all non-major dependencies (#898)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 14:38:07 +11:00
renovate[bot]
76039a532f
chore(deps): update all non-major dependencies (#897)
* chore(deps): update all non-major dependencies

* fix: fixes for test and lint

Test was slow because we were deep-comparing lexers. This is
unnecessary as we can just shallow compare.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alec Thomas <alec@swapoff.org>
2023-12-08 14:22:40 +11:00
Aru Sahni
678b799ad6
Add a lexer for the Materialize SQL dialect (#896) 2023-12-08 11:21:23 +11:00
Alec Thomas
c74f557ed2 Add renovate v2.12.0 2023-12-02 07:26:45 +11:00
Mohammed Anas
d77dc8ab51
Add Hare lexer (#882) 2023-11-29 10:00:30 +11:00
Daniel
234600703b
Add an Alloy lexer (#892) 2023-11-26 08:52:31 +11:00
Daniel
08be6f023f
Add an Agda lexer (#891) 2023-11-25 19:54:04 +11:00
codiacdev
d9f6ed634e
added: rule to objectpascal lexer (#888)
* added: another rule for objectpascal lexer

* updated: objectpascal lexer testdata

* fixed: processing of control (escape) characters

* updated: test data for objectpascal lexer
2023-11-24 06:53:33 +11:00
silverwind
c5948a61b1
Add Vagrantfile to Ruby lexer (#890) 2023-11-24 06:50:30 +11:00
Rik
7d4db86648
Add Microsoft Dax (#889) 2023-11-22 20:53:27 +11:00
codiacdev
1cda665d1b
fixed: number formats in objectpascal lexer (#887)
* fixed: number formats in objectpascal lexer

added: some missing types
added: special compiler directives

* updated: testdata for objectpascal lexer
2023-11-19 11:05:10 +11:00
tarneo
b5afdeeade
fix(dns): highlight domain names as NameClass (#886) 2023-11-18 21:58:01 +11:00
codiacdev
07a90a93dd
added: ObjectPascal lexer (#883)
Initial version (proposal) of an ObjectPascal lexer

- the assembler state is not in use yet...
- the Intrinsic Routines rule is commented out and probably not needed...
2023-11-17 10:13:06 +11:00
Alec Thomas
96a12e377e fix: bad path normalisation v2.11.1 2023-11-13 08:41:30 +11:00
Alec Thomas
09953ff50f fix: attempt to load lexer files before using Get()
File loading runs after Get(), but Get() always succeeds so it would
never load a file.
v2.11.0
2023-11-13 08:22:22 +11:00
eric-j-ason
fe96ea49ef
Add test for ucode (#881) v2.10.1 2023-11-09 06:19:06 +11:00
eric-j-ason
8f938d02c5
Create lexer for ucode (#879) 2023-11-08 08:48:10 +11:00
Jonathan
038fab58f6
Add shebang (#864) 2023-11-01 07:18:04 +11:00
Jonathan
48d6be607a
Update prql.xml (#878) 2023-11-01 06:28:48 +11:00
otbutz
810464a509
Update Java lexer (#873) v2.10.0 2023-10-26 20:34:50 +11:00
silverwind
77e9146939
Add file extensions to go_template lexer (#875) 2023-10-21 04:33:35 +11:00
Johan Walles
b127e3569c
Make tty_indexed.go respond to None like tty_truecolour.go (#869) 2023-10-16 01:16:10 +11:00
silverwind
9ae4daed01
Add *.Dockerfile to docker lexer (#868) 2023-10-12 13:47:20 +11:00
Jonathan
2fa6f14bd6
Add PRQL to README (#863) 2023-10-04 04:20:32 +11:00
Jonathan
17597b63b7
Add PRQL language (#862) 2023-10-04 02:30:36 +11:00
Watal M. Iwasaki
7eb0305e1b
lexers/r: Match keywords prior to functions (#860) 2023-09-25 19:57:51 +10:00
Paul Jolly
827bd93b8c
lexers: add initial version of CUE lexer (#858)
This commit adds a decent first-cut of a lexer for CUE
(https://cuelang.org).

The main aspects of the language are implemented, but there are likely a
number of edge cases not covered, especially when it comes to string
interpolation, but this is a sufficiently decent first cut so as to
warrant merging into the chroma project rather than first working in a
fork.

This was tested locally for visual correctness using

    mkdir -p _examples
    (command cd ./cmd/chroma; go run . --lexer=cue --html --html-inline-styles) < lexers/testdata/cue.actual > _examples/cue.html

and then loading _examples/cue.html in a browser.

Closes #857
2023-09-24 08:12:43 +10:00
Alec Thomas
9087c632c4 docs: note about Get() being slow due to file matching
Fixes #714
2023-09-22 07:00:14 +10:00
Paul Jolly
ccd8d68495
lexers: move to comparing bytes in tests (#856)
* test: fix up writing up float scores with trailing newlines

This ensures we consistently write a trailing newline when RECORD=true
is set.

* lexers: update expected files using proper newlines

This is the mechanical result of running:

    RECORD=true go test ./lexers

* Assert lexer tests based on equality of byte encodings

This helps to ensure that running RECORD=true go test ./lexers on a
given commit for which the tests pass will not result in any changes in
the working tree.

Notes that as a result of this change, the following command results in
a clean working tree:

    RECORD=true go test ./lexers

Fixes #855
2023-09-22 06:35:48 +10:00
Alec Thomas
def00e9c22 chore: update issue templates 2023-09-20 10:41:13 +10:00
Rupus Reinefjord
0b08639048
lexers: support for nim GENERALIZED_TRIPLESTR_LIT (#853) 2023-09-19 23:20:40 +10:00
Anthony Martin
94d11ab996
Update Bicep grammar with recent additions (#850) 2023-09-17 08:29:47 +10:00
silverwind
c64e1bea46
add justfile filename to Makefile lexer (#852) 2023-09-17 08:25:01 +10:00
Carlos Henrique Guardão Gandarez
2b394614b7
Fix GDScript3 analyse regexes (#848) 2023-09-16 13:52:47 +10:00
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