* highlight classes of identifiers
* ^A shortcut should set implicit mark
-
-* move by words is inconsistent. Example:
- var infoId = 'readerinfo'+reader.id;
* Add a way to CD using a builtin (buffers will track original dir)
* shortcut to jump to previous edit
* add command line flags to toggle options (Tabs, Indent, etc..)
* implement X resources config file
+* move by words is inconsistent. Example:
+ var infoId = 'readerinfo'+reader.id;
The Future:
* File browser
* Acme-like window manager
+# Regular Expressions
+
+Operators:
+
+ c Literal character
+ ^ Start of string
+ $ End of string
+ . Any char
+ [ ] Any character in the set
+ [^ ] Any character not in the reange
+ ( ) Grouping/matching
+
+ ? Zero or one
+ * Zero or more
+ + One or more
+
+ {n,m} From n to m matches
+ | Alternative
+
# Syntax Highlighting
Label, Conditional, Repeat, Character, Number, PreProc, Float, Operator, Structure
+
+Keyword GROUP [WORD...]
+Match GROUP REGEX
+Region GROUP start=REGEX skip=REGEX end=REGEX
+
static void draw_line_num(bool current, size_t x, size_t y, size_t gcols, size_t num) {
if (ShowLineNumbers) {
- int color = (current ? CLR_CurrentLine : CLR_GutterText);
+ int color = CLR_GutterText;
+ if (current) {
+ color = CLR_CurrentLine;
+ size_t fheight = x11_font_height(Font);
+ x11_draw_rect((color >> 8), x-3, y-fheight, gutter_size(), fheight);
+ }
UGlyph glyphs[gcols];
for (int i = gcols-1; i >= 0; i--) {
glyphs[i].attr = color;