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

559 Commits

Author SHA1 Message Date
Ray Lee
2f5349aa18 Add italics support for indexed colour terminals 2019-09-02 08:12:43 +10:00
Ray Lee
f2e05136f7 Add italics support for truecolour terminals 2019-09-02 08:12:43 +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
Alec Thomas
2b493e2556 Fix SCSS issue with comments.
Fixes #272
2019-08-29 10:01:55 +10:00
toshimaru
a5a6d529d0 Use chroma.StyleEntries instead of map 2019-08-15 13:07:48 +10:00
FujiHaruka
70b7419367 Add EnsureNL in TypeScript lexer config 2019-08-11 22:10:30 +10:00
Nathan Ringo
65b5eea9a2 Adds .fth extension for Forth. 2019-08-06 21:53:29 +10:00
Alec Thomas
f8432cf78f Update issue templates 2019-07-23 09:39:56 +10:00
Alec Thomas
b1f0162469 Update issue templates 2019-07-23 09:27:41 +10:00
Alec Thomas
e6a56651ad Add width:100% to content <td> when inlining styles.
Fixes #225.
2019-07-20 23:19:20 +10:00
Alec Thomas
be3313d5c7 Update to most recent version of go.rice fork. v0.6.6 2019-07-20 20:32:22 +10:00
Alec Thomas
bbbfbe4e7a Update to more recent golangci-lint. 2019-07-19 18:57:05 +10:00
Alec Thomas
2ec7e6c2d1 Use Kong enum for lexers, formatters and styles. 2019-07-19 16:29:13 +10:00
Alec Thomas
5b0cc9c6ee Use goreleaser release binary. v0.6.5 2019-07-19 11:04:16 +10:00
Alec Thomas
ebc5ee03ef Latest go.rice version. 2019-07-17 15:35:59 +10:00
Alec Thomas
3411213e25 Temporarily use go.rice fork with correct asset timestamping/versioning. 2019-07-17 11:24:40 +10:00
Alec Thomas
9fbb21283d Render full HTML. 2019-07-16 23:24:37 +10:00
Alec Thomas
89e7ddc5d9 Disable spellchecking/autocomplete. 2019-07-16 22:22:30 +10:00
Alec Thomas
5da2819c7d Add cache-busting version. 2019-07-16 22:19:43 +10:00
Alec Thomas
c86a26959c Add info block. 2019-07-16 22:08:09 +10:00
Alec Thomas
aa71d61cc0 Only allow POST to /api/render. 2019-07-16 21:47:36 +10:00
Alec Thomas
ffa8a4f67f CORS support + raw HTML view + more. 2019-07-16 21:31:37 +10:00
Alec Thomas
bdb587cd37 Make playground completely dynamic. 2019-07-16 18:45:54 +10:00
Alec Thomas
2332264124 Add CSRF support to chromad. 2019-07-16 16:17:37 +10:00
Alec Thomas
7a7fde259b Split out chromad resources. 2019-07-16 15:45:06 +10:00
Alec Thomas
91b44ffd76 Lint isses. 2019-07-16 14:26:56 +10:00
Alec Thomas
10cee2ee79 Add Chroma playground.
Found here: https://swapoff.org/chroma/playground
2019-07-16 14:19:54 +10:00
Alec Thomas
2b84f4bd4d Sync R lexer with Pygments.
Fixes #260.
2019-07-15 20:40:04 +10:00
Mathieu Besançon
6b98624dc1 Update julia.go (#258)
They key word is `abstract type`, `abstract` or `type` alone can be defined as new bindings
2019-06-21 06:45:28 +10:00
Alec Thomas
1a13c19115 Add HCL lexer. v0.6.4 2019-06-17 22:51:52 +10:00
Alec Thomas
ea14dd8660 Fixed a fundamental bug where ^ would always match.
The engine was always passing a string sliced to the current position,
resulting in ^ always matching. Switched to use
FindRunesMatchStartingAt.

Fixes #242.
2019-06-12 12:32:20 +10:00
Mathieu Besançon
6e1e5df187 Update julia.go
Remove deprecated keywords and types
2019-06-09 19:29:21 +10:00
Alec Thomas
eb8e868cce Support for array transpose operator in Julia.
Fixes #253.
2019-06-09 17:40:38 +10:00
Devon Romanko
399337e012 Update Java lexer to use Punctuation where applicable (#254) (#255) 2019-05-30 11:19:12 +10:00
tamura shingo
f1ba5bf4f3 Implement special name mappings for Common Lisp. 2019-05-07 21:24:24 +10:00
Dustin Heestand
4a43fbd1ec Removed # as a comment character 2019-05-06 10:36:17 +10:00
Shigeki Karita
1327f9145e D language support (#249) 2019-04-29 05:15:40 +10:00
colin3dmax
53b060ccbe Added lexer for Vue. (#248) 2019-04-24 10:07:29 +10:00
Alec Thomas
9618112850 Import JSX lexer from https://github.com/fcurella/jsx-lexer
Fixes #218.
2019-04-22 19:38:15 +10:00
Alec Thomas
2105c68ed2 Implemented a weird little Pygments rule that I missed.
> If the RegexLexer encounters a newline that is flagged as an error
> token, the stack is emptied and the lexer continues scanning in the
> 'root' state. This can help producing error-tolerant highlighting for
> erroneous input, e.g. when a single-line string is not closed.

Fixes #246.
2019-04-22 18:22:58 +10:00
Douglas La Rocca
26f03cb449 modify jsx lexer to handle tags with periods 2019-04-04 08:48:02 +11:00
Alec Thomas
38460d1881 Clean repo before running goreleaser because it's insanely pedantic. v0.6.3 2019-03-25 15:12:11 +11:00
yangbo
564f7d393f add support for matlab 2019-03-07 23:49:34 +11:00
Kaushal Modi
c67f8fee79 Support SystemVerilog DPI and DPI-C import statements
Ref: Section "35.5.4 Import declarations" from SystemVerilog standard
IEEE 1800-2017.
2019-03-06 08:48:01 +11:00
Bardi Harborow
e10834d052 README adjustments (#236)
* Update README.md badges to SVG.

* Change hyphen to em dash.

* Add highlight language to shell commands.
2019-02-27 23:00:55 +11:00
Chris de Graaf
3bae20e98e Add modern struct keywords to Julia lexer 2019-02-20 21:25:33 +11:00
Victor Kropp
b5ccb8dc32 Improve numbers parsing in Kotlin 2019-02-09 10:23:20 +11:00
Jagger De Leo
f4dea84888 Add Turing tests 2019-02-04 15:40:15 +11:00
Jagger De Leo
243dad6e5b Add Turing lexer
Turing source files usually end with .t, but that clashes with Perl.
2019-02-04 15:40:15 +11:00
Jos512
8fd401fe83 Fix JS second part of division expression 2019-02-03 09:52:22 +11:00