summary refs log tree commit diff
path: root/bin/hi.c (follow)
Commit message (Collapse)AuthorAge
* Highlight yacc and lex files as CJune McEnroe2019-05-10
| | | | Their %-prefixed directives should probably be highlighted Macro.
* Use val instead of suboptargJune McEnroe2019-05-10
| | | | | suboptarg doesn't exist in GNU. Hopefully BSD getsubopt also sets val on failure?
* Highlight line continuations in line commentsJune McEnroe2019-03-14
|
* Use getsubopt(3) to parse -o options in hiJune McEnroe2019-02-27
|
* Add type and ulimit shell keywordsJune McEnroe2019-02-27
|
* Fix make target pattern whitespace in hiJune McEnroe2019-02-27
|
* Match make targets as TagJune McEnroe2019-02-20
|
* Don't match nested parentheses in Tag for CJune McEnroe2019-02-18
| | | | | | Fixes mistaken highlight of: pngWrite(file, (uint8_t []) { 0, 0, 0 }, 3);
* Match whitespace between * [] {}June McEnroe2019-02-18
|
* Fix function-like #define regexJune McEnroe2019-02-18
| | | | A define like #define FOO (1) is not function-like.
* Match Tag in RustJune McEnroe2019-02-18
|
* Match sh functions as TagJune McEnroe2019-02-18
|
* Match Sh and Ss as Tag in mdocJune McEnroe2019-02-18
|
* Match statics and typedefs as TagJune McEnroe2019-02-18
|
* Clean up htmlHeaderJune McEnroe2019-02-18
|
* Remove hi line numberingJune McEnroe2019-02-18
| | | | | | Tags are much better for referring to specific parts of a file and line numbering is better done by a post-processing tool such as cat -n or producing a two-column HTML <table>.
* Add Tag class to hiJune McEnroe2019-02-18
|
* Add hi -f html -o anchor for line number linksJune McEnroe2019-02-17
|
* Add line numbers to hiJune McEnroe2019-02-17
| | | | | | | Renames previous -n option to -m to stay consistent with cat -n. Prefixing lines with line numbers affects where the first tab indent ends up relative to the text above it. Not sure if it's worth fixing somehow.
* Always split spans after newlinesJune McEnroe2019-02-17
| | | | | Simplifies ANSI and IRC output code, and prepares for line numbered output.
* Highlight Interp as yellowJune McEnroe2019-02-15
|
* Highlight strings in sh command substitutionsJune McEnroe2019-02-15
|
* Match newlines in sh stringsJune McEnroe2019-02-13
|
* Fix sh comment pattern to require blankJune McEnroe2019-02-12
|
* Use a proper fread-realloc loop in hiJune McEnroe2019-02-12
|
* Don't match Rust raw strings inside other stringsJune McEnroe2019-02-12
|
* Add Rust to hiJune McEnroe2019-02-12
| | | | This also fixes the block comment pattern to match /* **/ correctly.
* Call setlocale in hiJune McEnroe2019-02-12
|
* Add plain text "language" to hiJune McEnroe2019-02-10
|
* Don't match DQ string inside SQ stringJune McEnroe2019-02-10
|
* Skip only one character if a match fails due to parentJune McEnroe2019-02-10
| | | | | Really it should skip forward until the parent changes, but this is simpler.
* Remove pattend from hiJune McEnroe2019-02-10
|
* Replace uses of pattend with newline patternsJune McEnroe2019-02-10
|
* Add hi debug outputJune McEnroe2019-02-10
|
* Actually do HTML &quot; escapingJune McEnroe2019-02-10
|
* Add back missing static keywordJune McEnroe2019-02-10
| | | | Ooops.
* Add tab option to HTML output of hiJune McEnroe2019-02-09
|
* Add css and inline HTML options to hiJune McEnroe2019-02-09
|
* Combine all Keyword patternsJune McEnroe2019-02-09
|
* Fix IRC output monospace option to emit once per lineJune McEnroe2019-02-09
|
* Add output format options to hiJune McEnroe2019-02-09
| | | | | The monospace option for IRC output doesn't really work, since IRCCloud puts a box around each span this way.
* Avoid using SGRReset and IRCResetJune McEnroe2019-02-09
|
* Use X macros for hi classesJune McEnroe2019-02-08
|
* Add sh syntax to hiJune McEnroe2019-02-08
|
* Use [] to quote special characters in regexJune McEnroe2019-02-08
| | | | This looks much cleaner than having to double-escape backslash.
* Improve ANSI output and base IRC on itJune McEnroe2019-02-08
|
* Add hi -nJune McEnroe2019-02-08
|
* Use set for parent in hiJune McEnroe2019-02-08
|
* Switch back to semantic keyword grouping in hiJune McEnroe2019-02-08
|
* Match only the basename in hiJune McEnroe2019-02-08
|