Patrick Förster
6d764f17f4
Update generated parser
2024-03-22 20:41:15 +07:00
Patrick Förster
841f89ffbb
Update generated code
2024-02-14 21:08:38 +07:00
Riley Bruins
3bffe98907
fix: typo in shortintertext node definition
2024-02-13 22:25:30 +07:00
martinra
2ae2021d7b
Fix parsing hierarchies of sections and paragraphs ( #90 )
...
Split section into section and paragraph.
This allows interleaved occurrences of section hierarchies and paragraphs.
2023-06-11 10:01:52 +07:00
lnay
89c3b6ce54
Generate new files via
...
> @pfoerster/tree-sitter-latex@0.3.0 generate
> tree-sitter generate and
2023-06-01 00:20:20 +07:00
lnay
95d41d9ec4
Clone sections of grammar+scanner relating to pycode env, but for sageblock/silent
2023-06-01 00:18:12 +07:00
João de Felipe
d3f3dde488
Stop treating \big, \bigg, \Big, \Bigg delimiters as pairable
...
Delimiters preceded by these commands are treated by TeX as Ord atoms --
meaning they don't require any sort of pairing, and shouldn't be treated
as such.
See #84 and The TeXbook, page 171.
2023-05-11 03:44:13 +07:00
Patrick Förster
91832daef5
Add support for definition commands from xparse
...
See #82 .
2023-04-16 10:48:21 +07:00
Xein
541bd2df22
fix: pycode environment produced an error
2023-01-01 08:15:46 +07:00
Rylee Lyman
4e1c009f58
remove operators from word and add sub- and superscript captures
2022-11-29 22:00:04 +07:00
Patrick Förster
546d46a44e
Add missing "\big"-style commands
2022-10-26 10:49:08 +07:00
Patrick Förster
d79f08baea
Do not associate brack_group with generic_command ( #51 )
...
Do not match bracket groups inside the generic command rule. Instead, only parse brackets for specific commands.
Fixes #48 .
2022-10-26 09:49:18 +07:00
Patrick Förster
3e7d2f9508
Extend math_delimiter rule
...
Allow \big, \bigl and \bigr commands in addition to \left and \right.
See #58 .
2022-10-25 22:11:45 +07:00
Patrick Förster
2d5f17ebd1
Allow options when using minted environment
...
See #55 .
2022-10-06 18:57:52 +07:00
Patrick Förster
d31884f933
Update to ABI version 14
2022-10-04 21:10:20 +07:00
Patrick Förster
23463ca6b8
Remove math_set rule
...
See #44 .
2022-05-14 12:48:33 +07:00
Patrick Förster
8ac966ece5
Fix color_definition rule
...
See #44 .
2022-05-14 12:36:31 +07:00
Patrick Förster
3b370b5ca3
Add parens and brackets to math_delimiter rule
...
See #43 .
2022-05-11 20:22:05 +07:00
Patrick Förster
692215e99f
Parse \left and \right correctly
...
See #43 .
2022-05-11 18:35:11 +07:00
Patrick Förster
8c5d90e78f
Do not match groups with parens after commands
...
See #42 .
2022-04-23 15:10:18 +07:00
Patrick Förster
e550c23486
Fix curly_group_impl rule
...
See #36 .
2022-04-14 18:21:52 +07:00
Patrick Förster
ab9c1c59de
Add rule for math environments
2022-04-13 21:55:48 +07:00
Patrick Förster
ba902decb0
Refactor special environment rules
2022-04-13 21:22:35 +07:00
Patrick Förster
a4efa1f1a3
Allow bracket groups after \title
2022-04-13 20:38:48 +07:00
Patrick Förster
e4112094b3
Add \renewcommand to environment_definition rule
...
See #40 .
2022-04-13 20:31:05 +07:00
Patrick Förster
a6926f5263
Parse section with custom ToC entry
...
See #39 .
2022-04-13 20:28:48 +07:00
Patrick Förster
fc69ab784a
Add rules for \author and \title
...
See #36 .
2022-04-13 20:19:21 +07:00
Patrick Förster
d43d8f6c46
Add support for paired delimiters
...
See #36 .
2022-04-11 20:50:05 +07:00
Patrick Förster
5afabaea0e
Add starred commands for theorem definitions
...
See #36
2022-04-11 20:41:35 +07:00
Patrick Förster
5686c9c831
Add text_mode rule for \text command
...
See #3 .
2022-03-16 20:12:58 +07:00
Patrick Förster
1ea9f87d30
Allow commands as children of text nodes
...
See #29 .
2022-02-26 21:40:59 +07:00
Patrick Förster
7a3d14d057
Rename command to generic_command
2022-02-26 21:15:52 +07:00
Patrick Förster
899b7408d8
Allow default arguments in command definitions
2022-02-26 20:57:05 +07:00
Patrick Förster
1666e9780d
Allow multiple paths in \usetikzlibrary command
...
See #28 .
2022-02-18 18:11:49 +07:00
duda
0181c557cb
Fix named childnodes
2022-02-15 00:41:16 +07:00
duda
7d9b32c87e
update auto-generated files
2022-02-14 14:36:26 +07:00
Patrick Förster
323b609de4
Make key val options in theorem def optional
...
See #24 .
2022-02-08 21:23:53 +07:00
Patrick Förster
f112e7ab87
Add operator rule
2022-02-03 21:05:41 +07:00
Patrick Förster
f0d193e0e3
Allow capturing minted environment language
2022-02-03 20:39:00 +07:00
Patrick Förster
f558d96421
Add field names for most grammar rules
2022-02-03 19:08:29 +07:00
Patrick Förster
8350a5d2af
Do not alias command name literals
2022-02-03 18:17:28 +07:00
Patrick Förster
c454b3207f
Fix compile warnings of external scanner
2022-02-02 21:19:01 +07:00
Patrick Förster
c96b4fa914
Simplify grammar structure
2022-02-02 20:18:05 +07:00
Patrick Förster
83a6eee2bd
Bump tree-sitter version
2022-01-29 10:21:39 +07:00
Patrick Förster
ccb6fe7a57
Simplify parsing of special LaTeX commands
2021-12-27 13:22:53 +07:00
vitorof
95aa9b78b6
Remove sep by comma from biblatex_include
2021-07-19 14:59:04 +07:00
vitorof
be6722c980
Add escaped braces to mixed_group
2021-07-19 14:57:41 +07:00
Patrick Förster
b5cab5dff3
Fix path rule
2021-07-18 16:37:32 +07:00
Patrick Förster
fbbf4c4e90
Introduce a rule for paths which handles env vars
2021-07-18 14:25:44 +07:00
Patrick Förster
7f720661de
Allow mixed group as command arguments
2021-05-11 16:35:53 +07:00