mirror of
https://github.com/latex-lsp/texlab.git
synced 2025-08-04 10:49:55 +00:00
Move parser to separate crate
This commit is contained in:
parent
037aad5513
commit
2af2e3524f
291 changed files with 341 additions and 309 deletions
26
Cargo.lock
generated
26
Cargo.lock
generated
|
@ -740,9 +740,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "insta"
|
||||
version = "1.28.0"
|
||||
version = "1.29.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fea5b3894afe466b4bcf0388630fc15e11938a6074af0cd637c825ba2ec8a099"
|
||||
checksum = "9a28d25139df397cbca21408bb742cf6837e04cdbebf1b07b760caf971d6a972"
|
||||
dependencies = [
|
||||
"console",
|
||||
"globset",
|
||||
|
@ -1071,6 +1071,18 @@ dependencies = [
|
|||
"windows-sys 0.45.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "parser"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"insta",
|
||||
"logos",
|
||||
"once_cell",
|
||||
"regex",
|
||||
"rowan",
|
||||
"syntax",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "percent-encoding"
|
||||
version = "2.2.0"
|
||||
|
@ -1308,9 +1320,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "regex"
|
||||
version = "1.7.1"
|
||||
version = "1.7.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733"
|
||||
checksum = "8b1f693b24f6ac912f4893ef08244d70b6067480d2f1a46e950c9691e6749d1d"
|
||||
dependencies = [
|
||||
"aho-corasick",
|
||||
"memchr",
|
||||
|
@ -1319,9 +1331,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "regex-syntax"
|
||||
version = "0.6.28"
|
||||
version = "0.6.29"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
|
||||
checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
|
||||
|
||||
[[package]]
|
||||
name = "rowan"
|
||||
|
@ -1613,11 +1625,11 @@ dependencies = [
|
|||
"isocountry",
|
||||
"itertools",
|
||||
"log",
|
||||
"logos",
|
||||
"lsp-server",
|
||||
"lsp-types",
|
||||
"notify",
|
||||
"once_cell",
|
||||
"parser",
|
||||
"regex",
|
||||
"rowan",
|
||||
"rustc-hash",
|
||||
|
|
20
crates/parser/Cargo.toml
Normal file
20
crates/parser/Cargo.toml
Normal file
|
@ -0,0 +1,20 @@
|
|||
[package]
|
||||
name = "parser"
|
||||
version = "0.0.0"
|
||||
license.workspace = true
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
logos = "0.12.1"
|
||||
once_cell = "1.17.1"
|
||||
regex = "1.7.3"
|
||||
rowan = "0.15.11"
|
||||
syntax = { path = "../syntax" }
|
||||
|
||||
[dev-dependencies]
|
||||
insta = { version = "1.29.0", features = ["glob", "redactions", "json"] }
|
||||
|
||||
[lib]
|
||||
doctest = false
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/comment.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/comment.txt
|
||||
---
|
||||
ROOT@0..82
|
||||
JUNK@0..16 "Some junk here\n\n"
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: crates/parser/src/test_data/bibtex/issue_809.txt
|
||||
---
|
||||
ROOT@0..50
|
||||
ENTRY@0..50
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/preamble.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/preamble.txt
|
||||
---
|
||||
ROOT@0..25
|
||||
PREAMBLE@0..25
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/aho_2006.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/aho_2006.txt
|
||||
---
|
||||
ROOT@0..314
|
||||
ENTRY@0..314
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/aksin_2006.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/aksin_2006.txt
|
||||
---
|
||||
ROOT@0..679
|
||||
STRING@0..40
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/almendro_1998.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/almendro_1998.txt
|
||||
---
|
||||
ROOT@0..706
|
||||
ENTRY@0..706
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/averroes_1998.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/averroes_1998.txt
|
||||
---
|
||||
ROOT@0..1008
|
||||
ENTRY@0..1008
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/betram_1996.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/betram_1996.txt
|
||||
---
|
||||
ROOT@0..556
|
||||
STRING@0..40
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/blom_2021.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/blom_2021.txt
|
||||
---
|
||||
ROOT@0..860
|
||||
ENTRY@0..860
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/combi_2004.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/combi_2004.txt
|
||||
---
|
||||
ROOT@0..674
|
||||
ENTRY@0..674
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/erwin_2007.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/erwin_2007.txt
|
||||
---
|
||||
ROOT@0..615
|
||||
ENTRY@0..615
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/jain_1999.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/jain_1999.txt
|
||||
---
|
||||
ROOT@0..674
|
||||
ENTRY@0..674
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/kastenholz_2006.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/kastenholz_2006.txt
|
||||
---
|
||||
ROOT@0..898
|
||||
STRING@0..35
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/knuth_1984.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/knuth_1984.txt
|
||||
---
|
||||
ROOT@0..993
|
||||
ENTRY@0..993
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/matuz_1990.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/matuz_1990.txt
|
||||
---
|
||||
ROOT@0..517
|
||||
ENTRY@0..517
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/nietzsche_1998.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/nietzsche_1998.txt
|
||||
---
|
||||
ROOT@0..1112
|
||||
STRING@0..49
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/bibtex.rs
|
||||
source: crates/parser/src/bibtex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/bibtex/samples/rivest_1978.txt
|
||||
input_file: crates/parser/src/test_data/bibtex/samples/rivest_1978.txt
|
||||
---
|
||||
ROOT@0..557
|
||||
ENTRY@0..557
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/build_log.rs
|
||||
source: crates/parser/src/build_log.rs
|
||||
expression: parse_build_log(&text)
|
||||
input_file: src/parser/test_data/build_log/001.txt
|
||||
input_file: crates/parser/src/test_data/build_log/001.txt
|
||||
---
|
||||
BuildLog {
|
||||
errors: [
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/build_log.rs
|
||||
source: crates/parser/src/build_log.rs
|
||||
expression: parse_build_log(&text)
|
||||
input_file: src/parser/test_data/build_log/002.txt
|
||||
input_file: crates/parser/src/test_data/build_log/002.txt
|
||||
---
|
||||
BuildLog {
|
||||
errors: [
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/build_log.rs
|
||||
source: crates/parser/src/build_log.rs
|
||||
expression: parse_build_log(&text)
|
||||
input_file: src/parser/test_data/build_log/003.txt
|
||||
input_file: crates/parser/src/test_data/build_log/003.txt
|
||||
---
|
||||
BuildLog {
|
||||
errors: [
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/build_log.rs
|
||||
source: crates/parser/src/build_log.rs
|
||||
expression: parse_build_log(&text)
|
||||
input_file: src/parser/test_data/build_log/004.txt
|
||||
input_file: crates/parser/src/test_data/build_log/004.txt
|
||||
---
|
||||
BuildLog {
|
||||
errors: [
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/build_log.rs
|
||||
source: crates/parser/src/build_log.rs
|
||||
expression: parse_build_log(&text)
|
||||
input_file: src/parser/test_data/build_log/005.txt
|
||||
input_file: crates/parser/src/test_data/build_log/005.txt
|
||||
---
|
||||
BuildLog {
|
||||
errors: [
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/build_log.rs
|
||||
source: crates/parser/src/build_log.rs
|
||||
expression: parse_build_log(&text)
|
||||
input_file: src/parser/test_data/build_log/006.txt
|
||||
input_file: crates/parser/src/test_data/build_log/006.txt
|
||||
---
|
||||
BuildLog {
|
||||
errors: [
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
source: src/parser/build_log.rs
|
||||
source: crates/parser/src/build_log.rs
|
||||
expression: parse_build_log(&text)
|
||||
input_file: crates/parser/src/test_data/build_log/007.txt
|
||||
---
|
||||
BuildLog {
|
||||
errors: [
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/block_comments.txt
|
||||
input_file: crates/parser/src/test_data/latex/block_comments.txt
|
||||
---
|
||||
ROOT@0..48
|
||||
PREAMBLE@0..48
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/caption/caption_default.txt
|
||||
input_file: crates/parser/src/test_data/latex/caption/caption_default.txt
|
||||
---
|
||||
ROOT@0..27
|
||||
PREAMBLE@0..27
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/caption/caption_default_error.txt
|
||||
input_file: crates/parser/src/test_data/latex/caption/caption_default_error.txt
|
||||
---
|
||||
ROOT@0..26
|
||||
PREAMBLE@0..26
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/caption/caption_figure.txt
|
||||
input_file: crates/parser/src/test_data/latex/caption/caption_figure.txt
|
||||
---
|
||||
ROOT@0..39
|
||||
PREAMBLE@0..39
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/caption/caption_minimal.txt
|
||||
input_file: crates/parser/src/test_data/latex/caption/caption_minimal.txt
|
||||
---
|
||||
ROOT@0..22
|
||||
PREAMBLE@0..22
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/caption/caption_minimal_error.txt
|
||||
input_file: crates/parser/src/test_data/latex/caption/caption_minimal_error.txt
|
||||
---
|
||||
ROOT@0..21
|
||||
PREAMBLE@0..21
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/citation/citation_empty.txt
|
||||
input_file: crates/parser/src/test_data/latex/citation/citation_empty.txt
|
||||
---
|
||||
ROOT@0..7
|
||||
PREAMBLE@0..7
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/citation/citation_missing_brace.txt
|
||||
input_file: crates/parser/src/test_data/latex/citation/citation_missing_brace.txt
|
||||
---
|
||||
ROOT@0..9
|
||||
PREAMBLE@0..9
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/citation/citation_multiple_keys.txt
|
||||
input_file: crates/parser/src/test_data/latex/citation/citation_multiple_keys.txt
|
||||
---
|
||||
ROOT@0..15
|
||||
PREAMBLE@0..15
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/citation/citation_prenote.txt
|
||||
input_file: crates/parser/src/test_data/latex/citation/citation_prenote.txt
|
||||
---
|
||||
ROOT@0..15
|
||||
PREAMBLE@0..15
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/citation/citation_prenote_postnote.txt
|
||||
input_file: crates/parser/src/test_data/latex/citation/citation_prenote_postnote.txt
|
||||
---
|
||||
ROOT@0..20
|
||||
PREAMBLE@0..20
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/citation/citation_redundant_comma.txt
|
||||
input_file: crates/parser/src/test_data/latex/citation/citation_redundant_comma.txt
|
||||
---
|
||||
ROOT@0..12
|
||||
PREAMBLE@0..12
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/citation/citation_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/citation/citation_simple.txt
|
||||
---
|
||||
ROOT@0..10
|
||||
PREAMBLE@0..10
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/citation/citation_star.txt
|
||||
input_file: crates/parser/src/test_data/latex/citation/citation_star.txt
|
||||
---
|
||||
ROOT@0..10
|
||||
PREAMBLE@0..10
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/color/color_definition_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/color/color_definition_simple.txt
|
||||
---
|
||||
ROOT@0..33
|
||||
PREAMBLE@0..33
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/color/color_reference_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/color/color_reference_simple.txt
|
||||
---
|
||||
ROOT@0..13
|
||||
PREAMBLE@0..13
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/color/color_set_definition_error1.txt
|
||||
input_file: crates/parser/src/test_data/latex/color/color_set_definition_error1.txt
|
||||
---
|
||||
ROOT@0..39
|
||||
PREAMBLE@0..39
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/color/color_set_definition_error2.txt
|
||||
input_file: crates/parser/src/test_data/latex/color/color_set_definition_error2.txt
|
||||
---
|
||||
ROOT@0..30
|
||||
PREAMBLE@0..30
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/color/color_set_definition_error3.txt
|
||||
input_file: crates/parser/src/test_data/latex/color/color_set_definition_error3.txt
|
||||
---
|
||||
ROOT@0..25
|
||||
PREAMBLE@0..25
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/color/color_set_definition_error4.txt
|
||||
input_file: crates/parser/src/test_data/latex/color/color_set_definition_error4.txt
|
||||
---
|
||||
ROOT@0..15
|
||||
PREAMBLE@0..15
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/color/color_set_definition_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/color/color_set_definition_simple.txt
|
||||
---
|
||||
ROOT@0..44
|
||||
PREAMBLE@0..44
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/command_definition/command_definition_no_argc.txt
|
||||
input_file: crates/parser/src/test_data/latex/command_definition/command_definition_no_argc.txt
|
||||
---
|
||||
ROOT@0..22
|
||||
PREAMBLE@0..22
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/command_definition/command_definition_no_impl.txt
|
||||
input_file: crates/parser/src/test_data/latex/command_definition/command_definition_no_impl.txt
|
||||
---
|
||||
ROOT@0..17
|
||||
PREAMBLE@0..17
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/command_definition/command_definition_no_impl_error.txt
|
||||
input_file: crates/parser/src/test_data/latex/command_definition/command_definition_no_impl_error.txt
|
||||
---
|
||||
ROOT@0..16
|
||||
PREAMBLE@0..16
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/command_definition/command_definition_optional.txt
|
||||
input_file: crates/parser/src/test_data/latex/command_definition/command_definition_optional.txt
|
||||
---
|
||||
ROOT@0..29
|
||||
PREAMBLE@0..29
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/command_definition/command_definition_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/command_definition/command_definition_simple.txt
|
||||
---
|
||||
ROOT@0..23
|
||||
PREAMBLE@0..23
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/command_definition/command_definition_with_begin.txt
|
||||
input_file: crates/parser/src/test_data/latex/command_definition/command_definition_with_begin.txt
|
||||
---
|
||||
ROOT@0..80
|
||||
PREAMBLE@0..80
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/command_definition/math_operator_no_impl.txt
|
||||
input_file: crates/parser/src/test_data/latex/command_definition/math_operator_no_impl.txt
|
||||
---
|
||||
ROOT@0..26
|
||||
PREAMBLE@0..26
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/command_definition/math_operator_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/command_definition/math_operator_simple.txt
|
||||
---
|
||||
ROOT@0..31
|
||||
PREAMBLE@0..31
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/environment/environment_asymptote.txt
|
||||
input_file: crates/parser/src/test_data/latex/environment/environment_asymptote.txt
|
||||
---
|
||||
ROOT@0..50
|
||||
PREAMBLE@0..50
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/environment/environment_definition.txt
|
||||
input_file: crates/parser/src/test_data/latex/environment/environment_definition.txt
|
||||
---
|
||||
ROOT@0..47
|
||||
PREAMBLE@0..47
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/environment/environment_definition_optional_arg.txt
|
||||
input_file: crates/parser/src/test_data/latex/environment/environment_definition_optional_arg.txt
|
||||
---
|
||||
ROOT@0..44
|
||||
PREAMBLE@0..44
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/environment/environment_nested.txt
|
||||
input_file: crates/parser/src/test_data/latex/environment/environment_nested.txt
|
||||
---
|
||||
ROOT@0..43
|
||||
PREAMBLE@0..43
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/environment/environment_nested_missing_braces.txt
|
||||
input_file: crates/parser/src/test_data/latex/environment/environment_nested_missing_braces.txt
|
||||
---
|
||||
ROOT@0..52
|
||||
PREAMBLE@0..52
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/environment/environment_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/environment/environment_simple.txt
|
||||
---
|
||||
ROOT@0..33
|
||||
PREAMBLE@0..33
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/equation.txt
|
||||
input_file: crates/parser/src/test_data/latex/equation.txt
|
||||
---
|
||||
ROOT@0..13
|
||||
PREAMBLE@0..13
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/equation_missing_begin.txt
|
||||
input_file: crates/parser/src/test_data/latex/equation_missing_begin.txt
|
||||
---
|
||||
ROOT@0..28
|
||||
PREAMBLE@0..28
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/generic_command_args.txt
|
||||
input_file: crates/parser/src/test_data/latex/generic_command_args.txt
|
||||
---
|
||||
ROOT@0..14
|
||||
PREAMBLE@0..14
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/generic_command_empty.txt
|
||||
input_file: crates/parser/src/test_data/latex/generic_command_empty.txt
|
||||
---
|
||||
ROOT@0..4
|
||||
PREAMBLE@0..4
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: crates/parser/src/test_data/latex/generic_command_escape.txt
|
||||
---
|
||||
ROOT@0..2
|
||||
PREAMBLE@0..2
|
||||
GENERIC_COMMAND@0..2
|
||||
COMMAND_NAME@0..2 "\\#"
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/glossary/acronym_declaration.txt
|
||||
input_file: crates/parser/src/test_data/latex/glossary/acronym_declaration.txt
|
||||
---
|
||||
ROOT@0..64
|
||||
PREAMBLE@0..64
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/glossary/acronym_definition_options.txt
|
||||
input_file: crates/parser/src/test_data/latex/glossary/acronym_definition_options.txt
|
||||
---
|
||||
ROOT@0..76
|
||||
PREAMBLE@0..76
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/glossary/acronym_definition_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/glossary/acronym_definition_simple.txt
|
||||
---
|
||||
ROOT@0..44
|
||||
PREAMBLE@0..44
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/glossary/acronym_package.txt
|
||||
input_file: crates/parser/src/test_data/latex/glossary/acronym_package.txt
|
||||
---
|
||||
ROOT@0..35
|
||||
PREAMBLE@0..35
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/glossary/acronym_reference_options.txt
|
||||
input_file: crates/parser/src/test_data/latex/glossary/acronym_reference_options.txt
|
||||
---
|
||||
ROOT@0..32
|
||||
PREAMBLE@0..32
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/glossary/acronym_reference_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/glossary/acronym_reference_simple.txt
|
||||
---
|
||||
ROOT@0..19
|
||||
PREAMBLE@0..19
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/glossary/glossary_entry_definition_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/glossary/glossary_entry_definition_simple.txt
|
||||
---
|
||||
ROOT@0..39
|
||||
PREAMBLE@0..39
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/glossary/glossary_entry_reference_options.txt
|
||||
input_file: crates/parser/src/test_data/latex/glossary/glossary_entry_reference_options.txt
|
||||
---
|
||||
ROOT@0..25
|
||||
PREAMBLE@0..25
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/glossary/glossary_entry_reference_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/glossary/glossary_entry_reference_simple.txt
|
||||
---
|
||||
ROOT@0..9
|
||||
PREAMBLE@0..9
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/graphics_path.txt
|
||||
input_file: crates/parser/src/test_data/latex/graphics_path.txt
|
||||
---
|
||||
ROOT@0..28
|
||||
PREAMBLE@0..28
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/graphics_path_command.txt
|
||||
input_file: crates/parser/src/test_data/latex/graphics_path_command.txt
|
||||
---
|
||||
ROOT@0..32
|
||||
PREAMBLE@0..32
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/graphics_path_options.txt
|
||||
input_file: crates/parser/src/test_data/latex/graphics_path_options.txt
|
||||
---
|
||||
ROOT@0..33
|
||||
PREAMBLE@0..33
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/group/curly_group_missing_end.txt
|
||||
input_file: crates/parser/src/test_data/latex/group/curly_group_missing_end.txt
|
||||
---
|
||||
ROOT@0..12
|
||||
PREAMBLE@0..12
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/group/curly_group_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/group/curly_group_simple.txt
|
||||
---
|
||||
ROOT@0..13
|
||||
PREAMBLE@0..13
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/group/equation_missing_end.txt
|
||||
input_file: crates/parser/src/test_data/latex/group/equation_missing_end.txt
|
||||
---
|
||||
ROOT@0..28
|
||||
PREAMBLE@0..28
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/group/escaped_brackets.txt
|
||||
input_file: crates/parser/src/test_data/latex/group/escaped_brackets.txt
|
||||
---
|
||||
ROOT@0..6
|
||||
PREAMBLE@0..6
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/group/unmatched_braces.txt
|
||||
input_file: crates/parser/src/test_data/latex/group/unmatched_braces.txt
|
||||
---
|
||||
ROOT@0..2
|
||||
PREAMBLE@0..2
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/group/unmatched_brackets.txt
|
||||
input_file: crates/parser/src/test_data/latex/group/unmatched_brackets.txt
|
||||
---
|
||||
ROOT@0..2
|
||||
PREAMBLE@0..2
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/group/unmatched_brackets_with_group.txt
|
||||
input_file: crates/parser/src/test_data/latex/group/unmatched_brackets_with_group.txt
|
||||
---
|
||||
ROOT@0..4
|
||||
PREAMBLE@0..4
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/hello_world.txt
|
||||
input_file: crates/parser/src/test_data/latex/hello_world.txt
|
||||
---
|
||||
ROOT@0..12
|
||||
PREAMBLE@0..12
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/include/biblatex_include_options.txt
|
||||
input_file: crates/parser/src/test_data/latex/include/biblatex_include_options.txt
|
||||
---
|
||||
ROOT@0..42
|
||||
PREAMBLE@0..42
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/include/biblatex_include_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/include/biblatex_include_simple.txt
|
||||
---
|
||||
ROOT@0..28
|
||||
PREAMBLE@0..28
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/include/bibtex_include_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/include/bibtex_include_simple.txt
|
||||
---
|
||||
ROOT@0..22
|
||||
PREAMBLE@0..22
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/include/class_include_empty.txt
|
||||
input_file: crates/parser/src/test_data/latex/include/class_include_empty.txt
|
||||
---
|
||||
ROOT@0..16
|
||||
PREAMBLE@0..16
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/include/class_include_options.txt
|
||||
input_file: crates/parser/src/test_data/latex/include/class_include_options.txt
|
||||
---
|
||||
ROOT@0..44
|
||||
PREAMBLE@0..44
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/include/class_include_simple.txt
|
||||
input_file: crates/parser/src/test_data/latex/include/class_include_simple.txt
|
||||
---
|
||||
ROOT@0..23
|
||||
PREAMBLE@0..23
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
source: src/parser/latex.rs
|
||||
source: crates/parser/src/latex.rs
|
||||
expression: root
|
||||
input_file: src/parser/test_data/latex/include/graphics_include_command.txt
|
||||
input_file: crates/parser/src/test_data/latex/include/graphics_include_command.txt
|
||||
---
|
||||
ROOT@0..52
|
||||
PREAMBLE@0..52
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue