aboutsummaryrefslogtreecommitdiff
path: root/_ext
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-31 22:38:29 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-31 22:38:29 -0600
commit14c4550aff926f53f256e831a7d99bffffd21dfd (patch)
tree09be545f8edd4923b4b771845fe8b9a3db614430 /_ext
parent5af481d62df80d8be3f5835042d30372ef9cbe04 (diff)
downloadspec-14c4550aff926f53f256e831a7d99bffffd21dfd.tar.gz
spec-14c4550aff926f53f256e831a7d99bffffd21dfd.zip
settle on a tagged union plan (for now)
Diffstat (limited to '_ext')
-rw-r--r--_ext/crowbar_domain.py1
-rw-r--r--_ext/crowbar_lexer.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/_ext/crowbar_domain.py b/_ext/crowbar_domain.py
index db1330e..619487d 100644
--- a/_ext/crowbar_domain.py
+++ b/_ext/crowbar_domain.py
@@ -125,7 +125,6 @@ class CrowbarDomain(Domain):
return make_refnode(builder, fromdocname, todocname, targ,
contnode, targ)
else:
- print('Awww, found nothing')
return None
def add_keyword(self, signature):
diff --git a/_ext/crowbar_lexer.py b/_ext/crowbar_lexer.py
index 6f0ec5e..2dd20ec 100644
--- a/_ext/crowbar_lexer.py
+++ b/_ext/crowbar_lexer.py
@@ -268,7 +268,7 @@ class CrowbarLexer(RegexLexer):
tokens = {
'root': [
(r'bool|char|double|float|function|int|long|short|signed|unsigned|void', Keyword.Type),
- (r'const|enum|extern|struct', Keyword.Declaration),
+ (r'const|enum|extern|struct|union', Keyword.Declaration),
(r'include', Keyword.Namespace),
(r'break|case|continue|default|do|else|for|fragile|if|return|switch|while', Keyword),
(r"[\p{L}\p{Pc}\p{Sk}\p{Mn}][\p{L}\p{Pc}\p{Sk}\p{Mn}\p{N}]*", Name),