44e6af8546
fix: support choosing lexers when used as a library
2024-10-14 16:45:50 -03:00
c16b139fa3
feat: support selecting only some themes
Tests / build (push) Waiting to run
2024-10-14 13:11:22 -03:00
0423811c5d
feat: optional conditional baking of lexers
2024-09-26 18:47:47 -03:00
8b34a1659d
fix: Bug in high-level API for png formatter
2024-09-21 21:07:44 -03:00
3bf8172b89
fix: Terminal formatter was skipping things that it could highlight
2024-09-21 20:57:24 -03:00
6a6827f26a
feat: PNG writer based on Stumpy libs
2024-09-21 20:22:30 -03:00
08e81683ca
fix: HTML formatter was setting bold wrong
2024-09-21 13:36:31 -03:00
9c70fbf389
feat: SVG formatter
2024-09-21 12:56:40 -03:00
ac8b7e3800
test: added tests for CSS generation
Tests / build (push) Has been cancelled
Coverage / build (push) Has been cancelled
2024-09-10 22:38:04 -03:00
84980459cf
feat: use the native crystal highlighter
...
The chroma highlighter for crystal is not great,
because the pygments one special cases things like
heredocs and that got lost in translation.
Since the crystal compiler comes with a highlighter
why not use it?
2024-09-09 16:14:35 -03:00
c011bd8347
feat: higher level API (to_html
and to_ansi
)
Tests / build (push) Has been cancelled
2024-09-05 12:03:33 -03:00
3ed4a7eab8
fix: renamed BaseLexer to Lexer and Lexer to RegexLexer to make API nicer
2024-09-04 11:37:36 -03:00
6f797f999a
fix: make it easier to import the Ansi formatter
2024-09-04 11:37:36 -03:00
a1318501a5
build: switch from Makefile to Hacefile
2024-09-04 11:37:33 -03:00
4dd2e925b0
Fix bug in ansi formatter
2024-08-26 16:44:44 -03:00
082241eb0f
Load lexer by mimetype
2024-08-24 22:20:38 -03:00
5a3b50d7a3
Integrate heuristics into lexer selection
2024-08-24 21:39:39 -03:00
a5926af518
Comments
2024-08-24 20:53:14 -03:00
fc9f834bc8
Make it work again
2024-08-24 20:09:29 -03:00
58fd42d936
Rebase to main
2024-08-24 19:59:05 -03:00
5a88a51f3e
Implement heuristics from linguist
2024-08-24 19:55:56 -03:00
fd7c6fa4b3
Sort of working?
2024-08-24 19:55:56 -03:00
6264bfc754
Beginning deserialization of data
2024-08-24 19:55:56 -03:00
38196d6e96
Rst lexer
2024-08-24 19:49:02 -03:00
Ramiro Algozino
176b8e9bc9
docs: improve readme and help message
...
- Add example for printing output to the terminal
- Fix example for usage as CLI tool (missing -f flag)
- Add instructions in the help message for combining lexers
2024-08-23 18:30:14 +02:00
3d5d073471
Implemented usingbygroup action, so code-in-markdown works
2024-08-23 10:20:03 -03:00
a2884c4c78
Refactor
2024-08-22 21:58:21 -03:00
bd3df10d2c
Use classes instead of structs to allow properties of the same type
2024-08-22 21:52:59 -03:00
0f3b7fc3c5
Initial implementation of delegatinglexer
2024-08-22 20:55:08 -03:00
7f4296e9d7
Some template lexers
2024-08-22 16:11:30 -03:00
746abe53ea
Fix weird bug
2024-08-22 14:58:05 -03:00
90971e8f1b
Generate constants sorted so git diffs are smaller
2024-08-22 10:24:09 -03:00
057879c6ee
oops
2024-08-22 10:11:36 -03:00
215d53e173
3 more lexers (markdown moinwiki bbcode)
2024-08-21 22:21:38 -03:00
f435d7df21
0.5.1
2024-08-21 21:22:36 -03:00
3ebedec6c1
Make formatter a bit more convenient
2024-08-19 11:26:34 -03:00
57e63f2308
Make formatter a bit more convenient
2024-08-19 11:20:08 -03:00
4a598a575b
Make formatter a bit more convenient
2024-08-19 11:18:54 -03:00
9042138053
Make formatter a bit more convenient
2024-08-19 11:17:44 -03:00
fa647e898a
Make formatter a bit more convenient
2024-08-19 10:15:02 -03:00
ad92929a10
Make formatter a bit more convenient
2024-08-19 09:59:01 -03:00
bb952a44b8
Use IO for output
2024-08-16 17:25:33 -03:00
5a3b08e716
lint
2024-08-16 14:01:16 -03:00
9ebb9f2765
Fix off-by-1
2024-08-16 13:36:11 -03:00
7538fc76aa
Tokenize via an iterator, makes everything much faster
2024-08-16 13:27:02 -03:00
788577b226
Fix comment
2024-08-15 23:56:52 -03:00
1f01146b1f
Minor cleanup
2024-08-15 23:21:21 -03:00
9041b763ea
Remove unused bits of lexer config
2024-08-15 23:17:49 -03:00
ada30915c3
Idiomatic changes
2024-08-15 23:16:29 -03:00
78eff45ea0
Idiomatic changes
2024-08-15 23:11:49 -03:00