Skip to content

Commit 1df95d9

Browse files
committed
Fix exception termination in command arguments
1 parent e630d61 commit 1df95d9

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

LaTeXTools Log.sublime-syntax

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,20 +467,26 @@ contexts:
467467
- match: \}
468468
scope: meta.braces.log punctuation.section.braces.end.log
469469
pop: 1
470+
- include: log-paragraph-end
471+
- include: log-item-continuations
470472
- include: log-content
471473

472474
log-bracket-body:
473475
- meta_content_scope: meta.brackets.log
474476
- match: \]
475477
scope: meta.brackets.log punctuation.section.brackets.end.log
476478
pop: 1
479+
- include: log-paragraph-end
480+
- include: log-item-continuations
477481
- include: log-content
478482

479483
log-paren-body:
480484
- meta_content_scope: meta.parens.log
481485
- match: \)
482486
scope: meta.parens.log punctuation.section.parens.end.log
483487
pop: 1
488+
- include: log-paragraph-end
489+
- include: log-item-continuations
484490
- include: log-entries
485491
- include: log-content
486492

tests/syntax/syntax_test_latex.log

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,18 @@ If that doesn't work, type X <return> to quit.
753753

754754
# <- - meta.exception
755755

756+
# ----------
757+
# Issue 995: Incomplete function call arguments
758+
759+
! Undefined control sequence.
760+
l.1229 ...canonical \) in \( \SO(8) \) is \( \Spin
761+
(7) \), see~\cite[Theorem~...
762+
The control sequence at the end of the top line
763+
...and I'll forget about whatever was undefined.
764+
# <- meta.exception.log meta.function-call.latex meta.brackets.log
765+
766+
# <- - meta.exception
767+
756768
# ----------
757769
# Issue 1105: Support FiXme package
758770

0 commit comments

Comments
 (0)