├── .travis.yml ├── LICENSE ├── Makefile ├── README.md ├── benchmark.txt ├── cmd └── syntaxhighlight │ └── syntaxhighlight.go ├── example_test.go ├── highlight.go ├── highlight_test.go ├── keywords.go ├── kind_gostring.go └── testdata ├── escaped_string.py ├── escaped_string.py.html ├── escaped_string.py.ol.html ├── html_in_string.py ├── html_in_string.py.html ├── html_in_string.py.ol.html ├── net_http_client.go ├── no_ending_newline.js ├── no_ending_newline.js.html ├── no_ending_newline.js.ol.html ├── simple.c ├── simple.c.html ├── simple.c.ol.html ├── simple.go ├── simple.go.html ├── simple.go.ol.html ├── simple.js ├── simple.js.html ├── simple.js.ol.html ├── simple.py ├── simple.py.html ├── simple.py.ol.html ├── simple.rb ├── simple.rb.html ├── simple.rb.ol.html ├── strings.js ├── strings.js.html ├── strings.js.ol.html ├── underscore.go ├── underscore.go.html ├── underscore.go.ol.html ├── unterminated_string.py ├── unterminated_string.py.html ├── unterminated_string.py.ol.html ├── utf8.go ├── utf8.go.html └── utf8.go.ol.html /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/README.md -------------------------------------------------------------------------------- /benchmark.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/benchmark.txt -------------------------------------------------------------------------------- /cmd/syntaxhighlight/syntaxhighlight.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/cmd/syntaxhighlight/syntaxhighlight.go -------------------------------------------------------------------------------- /example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/example_test.go -------------------------------------------------------------------------------- /highlight.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/highlight.go -------------------------------------------------------------------------------- /highlight_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/highlight_test.go -------------------------------------------------------------------------------- /keywords.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/keywords.go -------------------------------------------------------------------------------- /kind_gostring.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/kind_gostring.go -------------------------------------------------------------------------------- /testdata/escaped_string.py: -------------------------------------------------------------------------------- 1 | "this string\" continues to here" 2 | -------------------------------------------------------------------------------- /testdata/escaped_string.py.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/escaped_string.py.html -------------------------------------------------------------------------------- /testdata/escaped_string.py.ol.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/escaped_string.py.ol.html -------------------------------------------------------------------------------- /testdata/html_in_string.py: -------------------------------------------------------------------------------- 1 | "

hello!

" 2 | -------------------------------------------------------------------------------- /testdata/html_in_string.py.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/html_in_string.py.html -------------------------------------------------------------------------------- /testdata/html_in_string.py.ol.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/html_in_string.py.ol.html -------------------------------------------------------------------------------- /testdata/net_http_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/net_http_client.go -------------------------------------------------------------------------------- /testdata/no_ending_newline.js: -------------------------------------------------------------------------------- 1 | 'test' -------------------------------------------------------------------------------- /testdata/no_ending_newline.js.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/no_ending_newline.js.html -------------------------------------------------------------------------------- /testdata/no_ending_newline.js.ol.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/no_ending_newline.js.ol.html -------------------------------------------------------------------------------- /testdata/simple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.c -------------------------------------------------------------------------------- /testdata/simple.c.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.c.html -------------------------------------------------------------------------------- /testdata/simple.c.ol.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.c.ol.html -------------------------------------------------------------------------------- /testdata/simple.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.go -------------------------------------------------------------------------------- /testdata/simple.go.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.go.html -------------------------------------------------------------------------------- /testdata/simple.go.ol.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.go.ol.html -------------------------------------------------------------------------------- /testdata/simple.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.js -------------------------------------------------------------------------------- /testdata/simple.js.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.js.html -------------------------------------------------------------------------------- /testdata/simple.js.ol.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.js.ol.html -------------------------------------------------------------------------------- /testdata/simple.py: -------------------------------------------------------------------------------- 1 | from foo import bar 2 | 3 | def f(self, a, b): 4 | print('hello!') 5 | -------------------------------------------------------------------------------- /testdata/simple.py.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.py.html -------------------------------------------------------------------------------- /testdata/simple.py.ol.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.py.ol.html -------------------------------------------------------------------------------- /testdata/simple.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.rb -------------------------------------------------------------------------------- /testdata/simple.rb.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.rb.html -------------------------------------------------------------------------------- /testdata/simple.rb.ol.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/simple.rb.ol.html -------------------------------------------------------------------------------- /testdata/strings.js: -------------------------------------------------------------------------------- 1 | 'a' 'b' 2 | return 3 | -------------------------------------------------------------------------------- /testdata/strings.js.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/strings.js.html -------------------------------------------------------------------------------- /testdata/strings.js.ol.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/strings.js.ol.html -------------------------------------------------------------------------------- /testdata/underscore.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/underscore.go -------------------------------------------------------------------------------- /testdata/underscore.go.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/underscore.go.html -------------------------------------------------------------------------------- /testdata/underscore.go.ol.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/underscore.go.ol.html -------------------------------------------------------------------------------- /testdata/unterminated_string.py: -------------------------------------------------------------------------------- 1 | "this string does not end 2 | -------------------------------------------------------------------------------- /testdata/unterminated_string.py.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/unterminated_string.py.html -------------------------------------------------------------------------------- /testdata/unterminated_string.py.ol.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/unterminated_string.py.ol.html -------------------------------------------------------------------------------- /testdata/utf8.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/utf8.go -------------------------------------------------------------------------------- /testdata/utf8.go.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/utf8.go.html -------------------------------------------------------------------------------- /testdata/utf8.go.ol.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/syntaxhighlight/HEAD/testdata/utf8.go.ol.html --------------------------------------------------------------------------------