1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-04-09 07:13:52 +02:00

10 Commits

Author SHA1 Message Date
Alec Thomas
20b4f5f89b Revert float pattern for C++.
Fixes #290.
2019-10-05 22:53:51 +10:00
Jonathan Poelen
6a3320f1b7 Fix several errors with c++
- add attribute ([[...]])
- add c++20 keywords
- add hexadecimal floatting point
- add digits separator
- fix unamed class/union/struct/enum (fix #272)
- fix function name detection
2019-09-01 13:11:26 +10:00
tamura shingo
f1ba5bf4f3 Implement special name mappings for Common Lisp. 2019-05-07 21:24:24 +10:00
Jos512
8ce6ac6016 Enable EnsureNL for TradingView and C# lexers 2019-01-23 20:30:40 +11: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
Jonathan Poelen
1b755a90bd c++: fix highlighting of the 'class' keyword
C++ highlighting ignores class keyword if it is not followed by a space

template<class T> struct X; // ok
template<class> struct X; // fails
template<class...> struct X; // fails
X<class::Y> x; // fails
2018-05-15 10:27:52 +10:00
Alec Thomas
5640f893f2 Revert #78.
See #68.
2018-03-19 17:26:42 +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
Alec Thomas
563aadc53c Moved lexers into alphabetical sub-packages.
This was done to speed up incremental compilation when working on
lexers. That is, modifying a single lexer will no longer require
recompiling all lexers.

This is a (slightly) backwards breaking change in that lexers are no
longer exported directly in the lexers package. The registry API is
"aliased" at the old location.
2018-02-15 21:09:02 +11:00