Commit Graph

209 Commits

Author SHA1 Message Date
Anthony Sottile
41aa025d3d Fix edge highlighting for 1-lenght highlights 2020-03-27 19:06:50 -07:00
Anthony Sottile
de956b7bab fix saving files with windows newlines 2020-03-27 18:42:37 -07:00
Anthony Sottile
1d3d413b93 Fix grammars which include \z 2020-03-27 18:18:16 -07:00
Anthony Sottile
50ad1e06f9 Add demo for showing vs code's tokenization 2020-03-27 17:59:35 -07:00
Anthony Sottile
032c3d78fc v0.0.3 v0.0.3 2020-03-26 20:38:52 -07:00
Anthony Sottile
a197645087 merge the textmate demo into babi 2020-03-26 20:26:57 -07:00
Anthony Sottile
9f8e400d32 switch to babi-grammars for syntax 2020-03-26 19:43:01 -07:00
Anthony Sottile
2123e6ee84 improve performance by ~.8%
apparently contextlib.suppress is enough to show up in profiles
2020-03-23 20:57:53 -07:00
Anthony Sottile
b529dde91a Fix incorrect caching in syntax highlighter
the concrete broken case was for markdown with yaml

```md
---
x: y
---

(this one shouldn't be yaml highlighted)
---
x: y
---
```
2020-03-23 20:05:47 -07:00
Anthony Sottile
c4e2f8e9cf this is unused 2020-03-22 20:12:04 -07:00
Anthony Sottile
e7d4fa1a07 v0.0.2 v0.0.2 2020-03-22 19:57:00 -07:00
Anthony Sottile
c186adcc6c partial windows support 2020-03-22 19:54:52 -07:00
Anthony Sottile
bdf07b8cb3 fix expansion of regexes with regex-special characters 2020-03-22 12:43:34 -07:00
Anthony Sottile
bf1c3d1ee1 Fix highlight color in replace/selection 2020-03-21 21:08:43 -07:00
Anthony Sottile
f1772ec829 Merge pull request #43 from pganssle/add_version
Pull version from system metadata
2020-03-21 16:42:08 -07:00
Paul Ganssle
84b489bb9b Pull version from system metadata 2020-03-21 16:09:20 -07:00
Anthony Sottile
175fd61119 Add secret --key-debug to debug keypresses 2020-03-21 15:57:23 -07:00
Anthony Sottile
01bb6d91b9 add highlighting for makefiles 2020-03-21 15:27:07 -07:00
Anthony Sottile
ffd5c87118 Identify grammars by filename conventions 2020-03-21 15:25:27 -07:00
Anthony Sottile
87f3e32f36 More lazily instanatiate grammars 2020-03-21 14:19:51 -07:00
Anthony Sottile
d20be693d2 Add docker syntax 2020-03-21 11:47:37 -07:00
Anthony Sottile
d826b8b472 bump hecate for @DanielChabrowski's fix 2020-03-19 21:25:20 -07:00
Daniel Chabrowski
25173c5dca Add "open" functionality with ^P 2020-03-19 20:57:01 -07:00
Anthony Sottile
b2ebfa7b48 Improve quick prompt appearance 2020-03-19 20:37:39 -07:00
Anthony Sottile
efa6561200 improve multiple file close behaviour 2020-03-19 20:05:57 -07:00
Anthony Sottile
b683657f23 Support babi - for reading from stdin
Resolves #42
2020-03-19 18:52:24 -07:00
Anthony Sottile
b59d03858c Improve comments-json parsing 2020-03-18 14:04:51 -07:00
Anthony Sottile
6ec1da061b Fix for begin-but-no-end rules (xml) 2020-03-18 11:56:36 -07:00
Anthony Sottile
c08557b6ca remove un-commenting as it's handled by bin/download-theme 2020-03-17 13:13:46 -07:00
Anthony Sottile
006c2bc8e4 Add script for downloading themes 2020-03-17 12:41:52 -07:00
Anthony Sottile
080f6e1d54 Add support for shorthand hex colors 2020-03-17 12:37:31 -07:00
Anthony Sottile
e77a660029 fix for internal extra commas in theme scopes 2020-03-17 12:13:36 -07:00
Anthony Sottile
e32e5b8c05 Fix one edge case with comma scopes 2020-03-17 11:53:23 -07:00
Anthony Sottile
08638f990c Add limited support for named colors
Resolves #41
2020-03-17 11:00:59 -07:00
Anthony Sottile
414adffa9b Fix highlighting edges and unify highlighting code 2020-03-16 15:19:21 -07:00
Anthony Sottile
8d77d5792a use a mapping interface for FileHL.regions 2020-03-15 20:10:44 -07:00
Anthony Sottile
c85c50c207 Move find/replace highlighting to a highlighter 2020-03-15 19:54:13 -07:00
Anthony Sottile
d5376ca6f2 properly detect hidden (.extension-only) files 2020-03-15 19:23:46 -07:00
Anthony Sottile
31e7c9345b Remove this cache, it is essentially a memory leak 2020-03-15 18:09:12 -07:00
Anthony Sottile
41543f8d6c Use default hash for some highlighting primitives
- this improves performance by ~13%
- a lot of time was spent in `tuple.__hash__` for these particular types
- the types that were changed are:
    - constructed once and then kept forever
    - act as "singletons"
2020-03-15 15:45:34 -07:00
Anthony Sottile
1be4e80edd Add syntax highlight for puppet 2020-03-14 15:39:10 -07:00
Anthony Sottile
4eafa3833d v0.0.1 v0.0.1 2020-03-14 14:18:02 -07:00
Anthony Sottile
3f751088db Merge pull request #40 from asottile/update_screenshots
Update screenshots
2020-03-14 14:10:47 -07:00
Anthony Sottile
7f53105e3d Update screenshots 2020-03-14 14:04:30 -07:00
Anthony Sottile
697b012027 Syntax highlighting 2020-03-13 21:07:58 -07:00
Anthony Sottile
1d06a77d44 Highlight trailing whitespace 2020-03-13 20:49:59 -07:00
Anthony Sottile
b52fb15368 Use clrtoeol to draw blank lines 2020-03-13 19:11:59 -07:00
Anthony Sottile
59946cad9a Improve Perf interface 2020-03-12 22:37:05 -07:00
Anthony Sottile
2066bed28e simpler TERM setting (and don't accidentally 256color in suspend) 2020-03-09 14:28:56 -07:00
Anthony Sottile
ec7fbba633 Fix race condition with multiple escape sequences in quick succession
Resolves #31
2020-03-06 16:58:50 -08:00