Skip to content

Commit

Permalink
fix: skip hidden fence when parsing
Browse files Browse the repository at this point in the history
Skip \left. and \right. Confusing to user and sometimes the hidden fence cannot be deleted
  • Loading branch information
mgreminger committed Feb 9, 2024
1 parent 9373701 commit 83d353a
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 295 deletions.
4 changes: 2 additions & 2 deletions src/parser/LatexLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ CMD_SLASH_LOG_UNDERSCORE_SINGLE_CHAR_ID: '\\log' [ ]* '_' [a-zA-Z] ;

COMMENT: '\\text{' .*? '}' -> skip ;

CMD_LEFT: '\\left' -> skip ;
CMD_RIGHT: '\\right' -> skip ;
CMD_LEFT: '\\left' '.'? -> skip ;
CMD_RIGHT: '\\right' '.'? -> skip ;

DOUBLE_DOLLAR_SIGN: '$$' -> skip ;

Expand Down
Loading

0 comments on commit 83d353a

Please sign in to comment.