|
1 | | -# Generated from TagTemplateParser.g4 by ANTLR 4.10.1 |
| 1 | +# Generated from TagTemplateParser.g4 by ANTLR 4.13.1 |
2 | 2 | # encoding: utf-8 |
3 | 3 | import sys |
4 | 4 | from io import StringIO |
@@ -1255,7 +1255,7 @@ class TagTemplateParser(Parser): |
1255 | 1255 |
|
1256 | 1256 | def __init__(self, input: TokenStream, output: TextIO = sys.stdout): |
1257 | 1257 | super().__init__(input, output) |
1258 | | - self.checkVersion("4.10.1") |
| 1258 | + self.checkVersion("4.13.1") |
1259 | 1259 | self._interp = ParserATNSimulator( |
1260 | 1260 | self, self.atn, self.decisionsToDFA, self.sharedContextCache |
1261 | 1261 | ) |
@@ -1378,7 +1378,7 @@ def tag(self): |
1378 | 1378 | self.state = 30 |
1379 | 1379 | self._errHandler.sync(self) |
1380 | 1380 | _la = self._input.LA(1) |
1381 | | - if _la == TagTemplateParser.CONTEXT_START: |
| 1381 | + if _la == 5: |
1382 | 1382 | self.state = 26 |
1383 | 1383 | self.match(TagTemplateParser.CONTEXT_START) |
1384 | 1384 | self.state = 27 |
@@ -1442,7 +1442,7 @@ def tag(self): |
1442 | 1442 | self.state = 51 |
1443 | 1443 | self._errHandler.sync(self) |
1444 | 1444 | _la = self._input.LA(1) |
1445 | | - if _la == TagTemplateParser.ARGS_START: |
| 1445 | + if _la == 9: |
1446 | 1446 | self.state = 50 |
1447 | 1447 | self.argumentList() |
1448 | 1448 |
|
@@ -1621,11 +1621,11 @@ def pattern(self): |
1621 | 1621 | self.state = 80 |
1622 | 1622 | self._errHandler.sync(self) |
1623 | 1623 | token = self._input.LA(1) |
1624 | | - if token in [TagTemplateParser.TEXT]: |
| 1624 | + if token in [4]: |
1625 | 1625 | self.state = 78 |
1626 | 1626 | self.rawText() |
1627 | 1627 | pass |
1628 | | - elif token in [TagTemplateParser.TAG_START]: |
| 1628 | + elif token in [2]: |
1629 | 1629 | self.state = 79 |
1630 | 1630 | self.tag() |
1631 | 1631 | pass |
@@ -1713,7 +1713,7 @@ def argumentList(self): |
1713 | 1713 | self.state = 96 |
1714 | 1714 | self._errHandler.sync(self) |
1715 | 1715 | _la = self._input.LA(1) |
1716 | | - while _la == TagTemplateParser.ARG_SEPARATOR: |
| 1716 | + while _la == 14: |
1717 | 1717 | self.state = 92 |
1718 | 1718 | self.match(TagTemplateParser.ARG_SEPARATOR) |
1719 | 1719 | self.state = 93 |
@@ -1745,7 +1745,7 @@ def argumentList(self): |
1745 | 1745 | self.state = 108 |
1746 | 1746 | self._errHandler.sync(self) |
1747 | 1747 | _la = self._input.LA(1) |
1748 | | - while _la == TagTemplateParser.ARG_SEPARATOR: |
| 1748 | + while _la == 14: |
1749 | 1749 | self.state = 104 |
1750 | 1750 | self.match(TagTemplateParser.ARG_SEPARATOR) |
1751 | 1751 | self.state = 105 |
@@ -1863,20 +1863,7 @@ def argumentValue(self): |
1863 | 1863 | self.enterOuterAlt(localctx, 1) |
1864 | 1864 | self.state = 120 |
1865 | 1865 | _la = self._input.LA(1) |
1866 | | - if not ( |
1867 | | - ( |
1868 | | - ((_la) & ~0x3F) == 0 |
1869 | | - and ( |
1870 | | - (1 << _la) |
1871 | | - & ( |
1872 | | - (1 << TagTemplateParser.NUMERIC_VALUE) |
1873 | | - | (1 << TagTemplateParser.BOOLEAN_VALUE) |
1874 | | - | (1 << TagTemplateParser.STRING_VALUE) |
1875 | | - ) |
1876 | | - ) |
1877 | | - != 0 |
1878 | | - ) |
1879 | | - ): |
| 1866 | + if not ((((_la) & ~0x3F) == 0 and ((1 << _la) & 229376) != 0)): |
1880 | 1867 | self._errHandler.recoverInline(self) |
1881 | 1868 | else: |
1882 | 1869 | self._errHandler.reportMatch(self) |
|
0 commit comments