mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-27 10:23:32 +00:00
add a log hint for mismatched brackets
This commit is contained in:
parent
4d3b743e4d
commit
208798ebe3
1 changed files with 9 additions and 1 deletions
|
@ -93,6 +93,14 @@ define -> [
|
|||
regexToMatch: /Error: `([^']{2,})' expected, found `([^']{2,})'.*/
|
||||
newMessage: "Error: environment does not match \\begin{$1} ... \\end{$2}"
|
||||
humanReadableHint: """
|
||||
You have used \\begin{...} without a corresponding \\end{...}
|
||||
You have used \\begin{...} without a corresponding \\end{...}.
|
||||
"""
|
||||
,
|
||||
ruleId: "hint_mismatched_brackets"
|
||||
regexToMatch: /Error: `([^a-zA-Z0-9])' expected, found `([^a-zA-Z0-9])'.*/
|
||||
newMessage: "Error: brackets do not match, found '$2' instead of '$1'"
|
||||
humanReadableHint: """
|
||||
You have used an open bracket without a corresponding close bracket.
|
||||
"""
|
||||
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue