parent
c8768bf7cb
commit
f93bdfe582
|
@ -7,12 +7,12 @@ class LatexGrammar(Grammar):
|
|||
PatternRule(r'comment', r'\%.*$'),
|
||||
PatternRule(r'latex_control', r'\\[a-zA-Z]+'),
|
||||
RegionRule(r'latex_argument', r'{', None, r'}'),
|
||||
RegionRule(r'latex_string', r"`", None, r"'"),
|
||||
RegionRule(r'latex_string', r"``", None, r"''"),
|
||||
PatternRule(r'latex_escaped', r'\\.'),
|
||||
PatternRule(r'latex_special', r'[{}$^_%~#&]'),
|
||||
]
|
||||
|
||||
|
||||
class Latex(mode.Fundamental):
|
||||
modename = 'Latex'
|
||||
extensions = ['.latex', '.tex']
|
||||
|
@ -30,7 +30,6 @@ class Latex(mode.Fundamental):
|
|||
self.add_bindings('wrap-paragraph', ('M-q',))
|
||||
self.add_action_and_bindings(LatexCommentRegion(), ('C-c #', "C-c \%"))
|
||||
self.add_action_and_bindings(LatexUncommentRegion(), ('C-u C-c #', "C-u C-c \%"))
|
||||
|
||||
self.add_action_and_bindings(LatexInsertSquotes(), ("M-'",))
|
||||
self.add_action_and_bindings(LatexInsertDquotes(), ('M-"',))
|
||||
self.add_action_and_bindings(LatexInsertBraces(), ('M-{',))
|
||||
|
|
Loading…
Reference in New Issue