Commit Graph

62 Commits (541bd2df22f92bcae3dd7fb35f011efedae30fa7)

Author SHA1 Message Date
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
Patrick Förster ea43db6830 Make section commands visible 2021-03-26 16:07:12 +07:00
Patrick Förster 88eea8e4d8 Make comment rule visible 2021-03-26 15:59:29 +07:00
Patrick Förster e87bc36487 Update tree-sitter version 2021-03-20 14:12:59 +07:00
Patrick Förster d113f32d34 Fix comment rule 2021-02-28 17:51:57 +07:00
Patrick Förster ef628fd8ba Split up includes 2021-02-16 09:53:01 +07:00
Patrick Förster f78bc7f40c Add TikZ library imports 2021-02-12 15:01:41 +07:00
Patrick Förster 94e43867b4 Improve error handling in label_reference_range 2021-02-11 15:17:02 +07:00
Patrick Förster 224acbb740 Add equation label references 2021-02-10 17:40:32 +07:00