Thomas Voss
b7c7bdbe65
Add a lexer for sed ( #682 )
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 ( #652 )
...
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 ( #675 )
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 ( #677 )
...
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 ( #674 )
v2.3.0
2022-09-16 01:14:11 -07:00
Martin Winandy
a238967fc0
Improve properties file lexer ( #671 )
2022-09-07 16:34:23 -07:00
Martin Winandy
a531e40eee
Add lexer for properties files ( #670 )
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 #353 .
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 ( #665 )
...
* 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 ( #661 )
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
silverwind
111921a080
Add cjs to Javascript lexer
...
.cjs is used to indicate a CommonJS in Node.js and other tools
2022-07-30 09:57:55 +10:00
Aniket Teredesai
c13ff147a3
fix(styles/github-dark): update definitions, reformat
2022-07-28 08:10:02 +10:00
silverwind
96fe58e6b1
Add BSDmakefile to make lexer ( #654 )
2022-07-20 14:20:15 -07:00
Aniket Teredesai
c714e84613
add(styles/github-dark): github's dark colorscheme for chroma ( #653 )
2022-07-19 00:37:37 -07:00
silverwind
3b326bebb1
Add Dockerfile.* to docker lexer
2022-07-13 14:26:31 -07:00
Mubashshir
5ce1d5dd69
lexers: Add BIND DNS Zone lexer
...
Closes #623
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
2022-06-27 01:18:15 -07:00
Danila Fedorin
f941d464e2
Add Chapel Lexer
2022-06-23 10:53:42 +10:00
smf007
298b727472
Revise fortran fixed format lexer to recognize comments using the "!" mark in columns 1-5 and columns > 6. Remove incorrect "0" label being a comment.
2022-06-21 12:23:23 +10:00
smf007
9a038fbcb1
Revise fortran lexer to be consistent with the current version in pygments
2022-06-19 12:43:06 +10:00
Siavash Askari Nasr
d18e8a46f2
Add InlineCode
option for inline code blocks
...
- Add an `InlineCode` option for inline code blocks
- When `PreventSurroundingPre` option is enabled, do not wrap the code by `Line` and `CodeLine`
- Write and update related tests
v2.2.0
2022-06-14 21:17:50 +10:00
Siavash Askari Nasr
530c45d213
Don't append semicolon to styleEntry if there is no other style
...
This means we also need to append semicolon to `Background`.
v2.1.0
2022-06-14 15:34:02 +10:00
Siavash Askari Nasr
5397b4880b
Append semicolon to tabWidthStyle
.
2022-06-14 15:34:02 +10:00
Siavash Askari Nasr
c78b8a6a03
Fix extra semicolon in tabWidthStyle
...
Needed after changes in #636
2022-06-14 07:16:12 +10:00
Siavash Askari Nasr
806ca29650
Add V lexer ( #640 )
2022-06-04 06:00:44 -07:00
Alec Thomas
4dfc2caf03
refactor: run go mod tidy on chromad
v2.0.1
2022-05-29 00:39:33 +10:00
Derek Ellis
d13d611a2d
Add value keyword for Kotlin
v2.0.0
2022-05-20 22:04:24 -07:00
Siavash Askari Nasr
dea6a13339
Add CSS style inheritance to WithCustomCSS
option
2022-05-18 02:45:33 -07:00
Siavash Askari Nasr
7d779408db
[html formatter] Add option to let users provide custom CSS styles
...
Example: WithCustomCSS(map[chroma.TokenType]string{chroma.Line: `display: inline;`})
2022-05-18 02:45:33 -07:00
Maxime Mangel
7cc13cf232
Add support for F# package reference + Fix CommentPreproc detection ( #631 )
2022-04-27 03:01:16 +10:00
David Pearce
073a30b897
Add Whiley Lexer ( #628 )
...
This is a fairly simple lexer for Whiley which covers the main things (e.g.
keywords, literals, etc).
2022-04-22 17:16:30 +10:00
Sean Berry
44d1d23ddb
fix: revert line change from pygments converter
...
Link to the breaking change: https://github.com/alecthomas/chroma/commit/59896e35\#diff-636cb338885284f1ed8524116f49b2bffcae81cfce89f55719019c993007d209R194
2022-04-22 10:05:11 +10:00
Patrice Chalin
d070b1cd8d
Fix for C# identifiers with leading underscores
2022-04-22 08:50:32 +10:00
Alec Thomas
f7d2bb0e52
fix: pin to Go 1.17 for now
2022-04-22 08:33:45 +10:00
Spence Churchill
f7893bced9
add an average rgb scheme
2022-04-20 18:16:07 +10:00
mhmdanas
7bfe2f41c6
fix: add Dart required
keyword
2022-03-04 20:38:24 +11:00