1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-21 19:06:18 +02:00

33 Commits

Author SHA1 Message Date
Pedro Sland
5a473179cf Improve Go lexer to detect functions (NameFunction) 2018-10-23 06:35:09 -07:00
Daniel G. Taylor
0955241525 Add HTTP unit test 2018-10-03 19:40:14 +10:00
Jos512
1ab0293d07 Add test for Bash lexer (#172) 2018-09-19 09:17:08 +10:00
Peter Lamby
c4123fc163 #170 Add lexer for systemd config files (#171)
See: https://www.freedesktop.org/software/systemd/man/systemd.syntax.html#
2018-09-18 19:45:27 +10:00
Alec Thomas
3575c5f597 Fix line endings in tradingview fixture. 2018-09-15 07:52:42 +10:00
Jos512
fccc5bb5f5 First version of TradingView lexer
Treat ( and ) as text in lexer

Added test files and small change of lexer

Fixed 'err' messages in Chroma output

Removed postfix behind numbers

Was originally from C# lexer, but not needed for TradingView

Improved single comment, punctuation, and operator

Simplified text match, improved punctuation and operators

Add slash to punctuation

Added missing named variables

Added proper test data with .expected file

Added TradingView lexer
2018-09-10 20:10:06 +02:00
Alec Thomas
5d7fef2ae6
Merge pull request #157 from kaushalmodi/nim_underscore
Allow standalone _ to be recognized as identifier in Nim
2018-08-02 13:21:39 +10:00
Kaushal Modi
7e453ef68f Add more Org mode syntax support
- Export blocks (#+begin_export foo .. #+end_export)
- Org Special blocks (nested) (#+begin_foo .. #+begin_bar..#+end_bar .. #+end_foo)
- Org DONE state CLOSED datestamp
- Org _underlined text_
2018-08-01 16:49:42 -04:00
Kaushal Modi
a85919fea1 Allow standalone _ to be recognized as identifier in Nim
Fixes https://github.com/alecthomas/chroma/issues/146.
2018-08-01 10:01:18 -04:00
Kaushal Modi
e4dff9a08c Add Org mode lexer (https://orgmode.org)
Fixes https://github.com/alecthomas/chroma/issues/40.
2018-07-31 15:06:05 -04:00
James Turnbull
91b12285fd Added Ballerina - https://ballerina.io (#154) 2018-07-23 12:28:37 +10:00
pzl
b18849cbf7
add jungle lexer 2018-06-23 08:53:43 -04:00
pzl
8387f77374
add monkeyc lexer 2018-06-23 08:53:29 -04:00
pzl
a2f2f3cf1c
add openscad lexer 2018-06-22 20:00:57 -04:00
Kenneth Shaw
95d0a9381b Fix Dollar-Quoted Strings (postgres + cql)
This commit refactors code from the markdown lexer into the chroma
package, and alters the PostgreSQL and CQL lexers to make use of it.

Additionally, an example markdown with the various sublexers is added.
2018-06-12 09:16:18 +07:00
Kenneth Shaw
2eb5cacd01 Add Cassandra CQL lexer
Adds a lexer (based off PostgreSQL) for Cassandra CQL support.
2018-06-09 07:42:49 +07:00
Benjamin Congdon
7f4d42f585 Add EnsureNL to Rust lexer; Add test data for Rust lexer 2018-05-13 00:44:43 +10:00
Weilin Shi
51d250fe8b Add testdata for dart 2018-04-02 18:39:22 +10:00
Weilin Shi
85c342e3e3 Add test data for gdscript 2018-03-26 17:30:55 +11:00
Alec Thomas
5640f893f2 Revert #78.
See #68.
2018-03-19 17:26:42 +11:00
Alec Thomas
59f554950e Fix DelegatingLexer.
Fixes #126.
2018-03-19 10:54:09 +11:00
Alec Thomas
db6920e68f Implemented delegating lexer.
This is a lexer that is useful for templating languages, where the
surrounding text may be of a different syntax. eg. PHP+HTML

The PHP lexer has been changed accordingly.

Fixes #80
2018-03-18 20:38:29 +11:00
Alec Thomas
3020e2ea8c Fix bug with nested newlines.
Fixes #124.

Also reinstitute lexer tests that disappeared during package split.
2018-03-03 10:16:21 +11:00
Sergey Yagodkin
33dd1722d5 fix PHP comment highlighting bug (#81) 2018-02-08 22:47:56 +11:00
Alec Thomas
205105fffc Fixed newlines at end of C++ files.
Fixes #104.
2018-02-08 12:26:28 +11:00
Sergey Yagodkin
a35b8fe9bd Fix incorrect javascript comment highlight (#104) 2018-02-08 10:22:37 +11:00
Alec Thomas
35126f9a94 Implement rudimentary JSX lexer based on https://github.com/fcurella/jsx-lexer/blob/master/jsx/lexer.py
Fixes #111.
2018-02-07 22:11:40 +11:00
Sergey Yagodkin
5964ce913c Add Solidity lexer 2018-02-07 11:16:00 +11:00
Victor Kropp
9653d70371 Kotlin lexer improvements
fixes #93
2018-01-03 18:52:55 +11:00
Alec Thomas
4afa8aa3ed Deduplicate a bunch of text in Scala lexer.
This is part of an effort to speed up compilation of the lexers package.
2018-01-03 11:04:11 +11:00
Alec Thomas
71ddf5511a Fix README for test fixtures. 2018-01-02 20:59:02 +11:00
Alec Thomas
e0f32fbcb5 Make lexer fixture running cleaner. 2018-01-02 15:11:41 +11:00
Alec Thomas
e56590a815 Add data-driven test framework for lexers.
See #68.
2018-01-02 14:53:25 +11:00