mirror of
https://github.com/alecthomas/chroma.git
synced 2025-07-13 01:10:14 +02:00
8
Makefile
8
Makefile
@ -13,11 +13,11 @@ tokentype_string.go: types.go
|
|||||||
go generate
|
go generate
|
||||||
|
|
||||||
chromad:
|
chromad:
|
||||||
rm -f chromad
|
rm -rf build
|
||||||
esbuild --bundle cmd/chromad/static/index.js --minify --outfile=cmd/chromad/static/index.min.js
|
esbuild --bundle cmd/chromad/static/index.js --minify --outfile=cmd/chromad/static/index.min.js
|
||||||
esbuild --bundle cmd/chromad/static/index.css --minify --outfile=cmd/chromad/static/index.min.css
|
esbuild --bundle cmd/chromad/static/index.css --minify --outfile=cmd/chromad/static/index.min.css
|
||||||
(export CGOENABLED=0 ; cd ./cmd/chromad && go build -ldflags="-X 'main.version=$(VERSION)'" -o ../../chromad .)
|
(export CGOENABLED=0 ; cd ./cmd/chromad && go build -ldflags="-X 'main.version=$(VERSION)'" -o ../../build/chromad .)
|
||||||
|
|
||||||
upload: chromad
|
upload: build/chromad
|
||||||
scp chromad root@swapoff.org: && \
|
scp build/chromad root@swapoff.org: && \
|
||||||
ssh root@swapoff.org 'install -m755 ./chromad /srv/http/swapoff.org/bin && service chromad restart'
|
ssh root@swapoff.org 'install -m755 ./chromad /srv/http/swapoff.org/bin && service chromad restart'
|
||||||
|
1
bin/.svu-1.11.0.pkg
Symbolic link
1
bin/.svu-1.11.0.pkg
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
hermit
|
@ -84,7 +84,7 @@
|
|||||||
</rule>
|
</rule>
|
||||||
</state>
|
</state>
|
||||||
<state name="macro">
|
<state name="macro">
|
||||||
<rule pattern="(include)(\s*(?:/[*].*?[*]/\s*)?)([^\n]+)">
|
<rule pattern="(include)(\s+)("[^"]+?"|<[^>]+?>)">
|
||||||
<bygroups>
|
<bygroups>
|
||||||
<token type="CommentPreproc"/>
|
<token type="CommentPreproc"/>
|
||||||
<token type="Text"/>
|
<token type="Text"/>
|
||||||
|
4
lexers/testdata/cpp.actual
vendored
4
lexers/testdata/cpp.actual
vendored
@ -1,5 +1,5 @@
|
|||||||
#include "a"
|
#include "a" // comment
|
||||||
#include <b>
|
#include <b> // comment
|
||||||
|
|
||||||
[[nodiscard]] void foo() noexcept;
|
[[nodiscard]] void foo() noexcept;
|
||||||
void foo();
|
void foo();
|
||||||
|
7
lexers/testdata/cpp.expected
vendored
7
lexers/testdata/cpp.expected
vendored
@ -2,10 +2,13 @@
|
|||||||
{"type":"CommentPreproc","value":"#include"},
|
{"type":"CommentPreproc","value":"#include"},
|
||||||
{"type":"Text","value":" "},
|
{"type":"Text","value":" "},
|
||||||
{"type":"CommentPreprocFile","value":"\"a\""},
|
{"type":"CommentPreprocFile","value":"\"a\""},
|
||||||
{"type":"CommentPreproc","value":"\n#include"},
|
{"type":"CommentPreproc","value":" "},
|
||||||
|
{"type":"CommentSingle","value":"// comment\n"},
|
||||||
|
{"type":"CommentPreproc","value":"#include"},
|
||||||
{"type":"Text","value":" "},
|
{"type":"Text","value":" "},
|
||||||
{"type":"CommentPreprocFile","value":"\u003cb\u003e"},
|
{"type":"CommentPreprocFile","value":"\u003cb\u003e"},
|
||||||
{"type":"CommentPreproc","value":"\n"},
|
{"type":"CommentPreproc","value":" "},
|
||||||
|
{"type":"CommentSingle","value":"// comment\n"},
|
||||||
{"type":"Text","value":"\n"},
|
{"type":"Text","value":"\n"},
|
||||||
{"type":"NameAttribute","value":"[[nodiscard]]"},
|
{"type":"NameAttribute","value":"[[nodiscard]]"},
|
||||||
{"type":"Text","value":" "},
|
{"type":"Text","value":" "},
|
||||||
|
Reference in New Issue
Block a user