latex-lsp / tree-sitter-latex

LaTeX grammar for tree-sitter
MIT License
87 stars 21 forks source link

Hyperlink parsing should accept more general URIs #134

Closed jdujava closed 3 weeks ago

jdujava commented 3 weeks ago

Consider following hyperlink:

\href{https://github.com/latex-lsp/tree-sitter-latex/issues?q=hyperlink}{search ``hyperlink''}

curly_group_text would exit at =, leading to a wrong parsing.

Similarly, one can have something like

\href{file:///path/to/file_containing spaces, and also commas}{file URI}

but again curly_group_text exits at the comma ,.