From 14c4550aff926f53f256e831a7d99bffffd21dfd Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sat, 31 Oct 2020 22:38:29 -0600 Subject: settle on a tagged union plan (for now) --- _ext/crowbar_domain.py | 1 - _ext/crowbar_lexer.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to '_ext') 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), -- cgit v1.2.3