Add `constant` as an alias for `const`

1c84fc2601cb228cb16c43a2995dce33b67bca8ffe67ef0b5b7b874229a276eb
We'll eventually remove `const`.
Alexis Sellier committed ago 1 parent c5321051
lib/std/lang/scanner.rad +2 -1
114 114
    /// Corresponding token.
115 115
    tok: TokenKind,
116 116
}
117 117
118 118
/// Sorted keyword table for binary search.
119 -
const KEYWORDS: [Keyword; 52] = [
119 +
const KEYWORDS: [Keyword; 53] = [
120 120
    { name: "align", tok: TokenKind::Align },
121 121
    { name: "and", tok: TokenKind::And },
122 122
    { name: "as", tok: TokenKind::As },
123 123
    { name: "assert", tok: TokenKind::Assert },
124 124
    { name: "bool", tok: TokenKind::Bool },
125 125
    { name: "break", tok: TokenKind::Break },
126 126
    { name: "case", tok: TokenKind::Case },
127 127
    { name: "catch", tok: TokenKind::Catch },
128 128
    { name: "const", tok: TokenKind::Const },
129 +
    { name: "constant", tok: TokenKind::Const },
129 130
    { name: "continue", tok: TokenKind::Continue },
130 131
    { name: "else", tok: TokenKind::Else },
131 132
    { name: "export", tok: TokenKind::Export },
132 133
    { name: "extern", tok: TokenKind::Extern },
133 134
    { name: "false", tok: TokenKind::False },