Alec Thomas
bc2d6680e4
Run gofmt -s over the codebase.
2017-09-26 22:05:55 +10:00
Weilin Shi
e6a24f7412
Add c# highlight fix #32
2017-09-26 12:15:59 +08:00
Hugo Locurcio
8604f257c9
Rename the Nimrod lexer to Nim
...
It has been the official name of the language for a while now.
2017-09-25 20:08:20 +02:00
Alec Thomas
022592be12
Correctly prioritise names over aliases.
2017-09-25 11:56:25 +10:00
Guillaume Laforge
cce6c8e193
Missing 'as' and 'in' keywords
2017-09-24 14:45:24 +02:00
Alec Thomas
b83a015e0b
More YAML tweaks.
2017-09-24 21:57:29 +10:00
Alec Thomas
b25b614cb6
Remove comment.
2017-09-24 21:47:46 +10:00
Alec Thomas
237eebbe1a
A naive YAML lexer.
...
Does not try to be smart in anyway. Instead, just highlights what it
can. Used this reference: https://learnxinyminutes.com/docs/yaml/
Fixes #13 .
2017-09-24 21:47:05 +10:00
Weilin Shi
cff81ff391
Add GDScript lexer
2017-09-24 12:58:23 +08:00
Alec Thomas
9d7539a4cd
Fix bug in Turtle lexer.
2017-09-22 23:27:40 +10:00
Alec Thomas
f8658edb57
Add Restructured Text lexer.
2017-09-22 22:29:17 +10:00
Weilin Shi
698bea1f19
Fix JavaScript keywords
2017-09-22 09:00:51 +08:00
Alec Thomas
60797cc03f
Add tracing + better error recovery.
2017-09-21 17:52:28 +10:00
Alec Thomas
e59d4639fc
Add async/await to JS lexer. Fixes #12 .
2017-09-21 12:36:22 +10:00
Alec Thomas
e2d6abaa64
Document and add iterator panic recovery.
2017-09-20 23:06:23 +10:00
Alec Thomas
cc0e4a59ab
Switch to an Iterator interface.
...
This is to solve an issue where writers returned by the Formatter
were often stateful, but this fact was not obvious to the API consumer,
and failed in interesting ways.
2017-09-20 22:19:36 +10:00
Alec Thomas
b57f8a4b4b
Update list.
2017-09-19 14:37:00 +10:00
Alec Thomas
2b1ffff691
Add missing Genshi variants.
2017-09-19 14:32:01 +10:00
Alec Thomas
a72960340e
Add test to pre-compile all regexes.
2017-09-19 14:15:33 +10:00
Alec Thomas
87183b3633
Add HTML formatter option for setting the tab width.
2017-09-19 13:14:29 +10:00
Alec Thomas
631fc87d6e
Fix lua lexer, and actually check error value from compiling regexes :(
2017-09-19 12:05:53 +10:00
Alec Thomas
00d5486e6b
Add lexers.MatchMimeType(mimeType).
2017-09-19 11:52:23 +10:00
Alec Thomas
affaf50c63
Add lower-case '*.r' glob for R.
2017-09-19 11:03:25 +10:00
Alec Thomas
3df4c80190
Rename S -> R + sort list of lexers.
2017-09-19 10:47:22 +10:00
Alec Thomas
fbc889aad6
Correct HTML output + add R/S.
...
Fixes #1 , #2 , #3 .
2017-09-19 10:30:10 +10:00
Alec Thomas
2dc153de8a
Add analyser for bash.
2017-09-18 20:30:19 +10:00
Alec Thomas
57c8e08560
Add CMake.
2017-09-18 19:29:14 +10:00
Alec Thomas
431e913333
Update documentation. Include "quick" package.
2017-09-18 13:15:07 +10:00
Alec Thomas
adb07b9e0d
Add Kotlin.
2017-09-18 11:49:16 +10:00
Alec Thomas
a10fd0a23d
Switch to github.com/dlclark/regexp2.
...
This makes translating Pygments lexers much much simpler (and possible).
2017-09-18 11:16:44 +10:00
Alec Thomas
d12529ae61
HTML formatter + import all Pygments styles.
2017-07-20 00:01:29 -07:00
Alec Thomas
7a7b85b4b3
Add protobuf and thrift.
2017-06-07 19:47:59 +10:00
Alec Thomas
7ae55eb265
Wire up content sniffing.
2017-06-07 19:47:59 +10:00
Alec Thomas
5749aebe42
Generalise and support 8, 256 and 16m colour terminals.
2017-06-07 19:47:59 +10:00
Alec Thomas
dba8ec47d2
Fixes: css, html, php.
2017-06-07 19:47:59 +10:00
Alec Thomas
6aea285ca4
Imported: css, html, java, php.
2017-06-07 19:47:59 +10:00
Alec Thomas
8ec7ab9986
Support #pop:<n>.
2017-06-07 19:47:59 +10:00
Alec Thomas
1f47bd705c
Use pointers to tokens + support regex flags in importer.
2017-06-07 19:47:59 +10:00
Alec Thomas
c64e5829b5
Add JavaScript.
2017-06-07 19:47:59 +10:00
Alec Thomas
a8e8490739
Add C++ lexer, generic SQL lexer.
2017-06-07 19:47:59 +10:00
Alec Thomas
5dedc6e45b
Add a bunch of automatically translated lexers.
2017-06-07 19:47:59 +10:00
Alec Thomas
b30de35ff1
Use a callback to emit tokens.
...
This is a) faster and b) supports streaming output.
2017-06-07 19:47:59 +10:00
Alec Thomas
6dd81b044b
Add Markdown processor. A bunch of performance improvements.
2017-06-07 19:47:59 +10:00
Alec Thomas
b2fb8edf77
Initial commit! Working!
2017-06-07 19:47:59 +10:00