Skip to content

Commit

Permalink
feat(definition syntax): switch from : to $
Browse files Browse the repository at this point in the history
BREAKING CHANGE
  • Loading branch information
mrossinek committed Oct 26, 2021
1 parent ff9ba2c commit 45b4859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scanner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class Scanner
if (check_detached(lexer, MARKER | NONE, { '|' }) != NONE)
return true;

if (check_detached(lexer, SINGLE_DEFINITION | MULTI_DEFINITION | NONE, { ':' }) != NONE)
if (check_detached(lexer, SINGLE_DEFINITION | MULTI_DEFINITION | NONE, { '$' }) != NONE)
return true;
else if (lexer->lookahead == '\n' && m_ParsedChars == 2)
{
Expand Down Expand Up @@ -589,7 +589,7 @@ class Scanner
std::vector<size_t> m_TagStack;

private:
const std::array<int32_t, 8> s_DetachedModifiers = { '*', '-', '>', '|', '=', '~', ':', '_' };
const std::array<int32_t, 8> s_DetachedModifiers = { '*', '-', '>', '|', '=', '~', '$', '_' };
};

extern "C"
Expand Down

0 comments on commit 45b4859

Please sign in to comment.