Replace bool with b1, b8, b16, ...

The b1 type is an abstract boolean value. The others are concrete
representations.
This commit is contained in:
Jakob Stoklund Olesen
2016-04-01 15:32:00 -07:00
parent 79e765a183
commit 043bb1aba5
4 changed files with 64 additions and 17 deletions

View File

@@ -30,7 +30,7 @@ class CretonneLexer(RegexLexer):
# Known attributes.
(keywords('align', 'aligntrap', 'uext', 'sext', 'inreg'), Name.Attribute),
# Well known value types.
(r'\b(bool|i\d+|f32|f64)(x\d+)?\b', Keyword.Type),
(r'\b(b\d+|i\d+|f32|f64)(x\d+)?\b', Keyword.Type),
# v<nn> = value
# ss<nn> = stack slot
(r'(v|ss)\d+', Name.Variable),