summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-02 14:36:55 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-02 14:36:55 -0500
commite8b7d01ff68fed675d1397f4556f159f0c32246d (patch)
treeb8ae0532b5801b63f218ca3135997e911e3e2d9c /ted.h
parent4ff4d669ccb658b8b48785d37946378a5b29688c (diff)
rust syntax highlighting
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index 5018879..97a8c64 100644
--- a/ted.h
+++ b/ted.h
@@ -18,6 +18,7 @@ enum {
SYNTAX_STATE_RUST_COMMENT_DEPTH_MUL = 0x1u,
SYNTAX_STATE_RUST_COMMENT_DEPTH_BITS = 4, // number of bits we allocate for the comment depth.
SYNTAX_STATE_RUST_STRING = 0x10u,
+ SYNTAX_STATE_RUST_STRING_IS_RAW = 0x20u,
};
typedef u8 SyntaxState;
@@ -26,6 +27,7 @@ ENUM_U16 {
LANG_NONE,
LANG_C,
LANG_CPP,
+ LANG_RUST,
LANG_COUNT
} ENUM_U16_END(Language);
@@ -38,6 +40,7 @@ static LanguageName const language_names[] = {
{LANG_NONE, "None"},
{LANG_C, "C"},
{LANG_CPP, "C++"},
+ {LANG_RUST, "Rust"},
};
ENUM_U8 {