diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-09 12:45:08 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-09 12:45:08 +0000 |
| commit | 66fd6696283507643c4b08d3bd91480ae2971e73 (patch) | |
| tree | 01fbfaa4c6621b3616888a6ca146e1c283ff7231 /src/lexer/token.cc | |
| parent | da12cca68e56a8e75103a7a12b6cdb4299517b4e (diff) | |
make symbol_property const, and fix typo
Diffstat (limited to 'src/lexer/token.cc')
| -rw-r--r-- | src/lexer/token.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lexer/token.cc b/src/lexer/token.cc index 091a7ab..ca0545d 100644 --- a/src/lexer/token.cc +++ b/src/lexer/token.cc @@ -77,7 +77,7 @@ bool T_lexer::token_continue(const string &s, char next) T_property tmp; if (symbol_property.contains(s)) { - tmp = symbol_property[s]; + tmp = symbol_property.at(s); if (tmp.continuable) { string prev_and_next = s + next; @@ -107,7 +107,7 @@ void T_lexer::token_push(const string &push_s, int bracket_depth, bool force_tex if (symbol_property.contains(trimmed) && !force_text) // symbol { loggerln("token_push: adding symbol"); - tmp.token_type = symbol_property[trimmed].enum_type; + tmp.token_type = symbol_property.at(trimmed).enum_type; } else { |
