--HG--
branch : pmacs2
This commit is contained in:
moculus 2008-04-02 02:58:07 +00:00
parent c8768bf7cb
commit f93bdfe582
1 changed files with 1 additions and 2 deletions

View File

@ -7,12 +7,12 @@ class LatexGrammar(Grammar):
PatternRule(r'comment', r'\%.*$'), PatternRule(r'comment', r'\%.*$'),
PatternRule(r'latex_control', r'\\[a-zA-Z]+'), PatternRule(r'latex_control', r'\\[a-zA-Z]+'),
RegionRule(r'latex_argument', r'{', None, r'}'), RegionRule(r'latex_argument', r'{', None, r'}'),
RegionRule(r'latex_string', 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_escaped', r'\\.'),
PatternRule(r'latex_special', r'[{}$^_%~#&]'), PatternRule(r'latex_special', r'[{}$^_%~#&]'),
] ]
class Latex(mode.Fundamental): class Latex(mode.Fundamental):
modename = 'Latex' modename = 'Latex'
extensions = ['.latex', '.tex'] extensions = ['.latex', '.tex']
@ -30,7 +30,6 @@ class Latex(mode.Fundamental):
self.add_bindings('wrap-paragraph', ('M-q',)) self.add_bindings('wrap-paragraph', ('M-q',))
self.add_action_and_bindings(LatexCommentRegion(), ('C-c #', "C-c \%")) 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(LatexUncommentRegion(), ('C-u C-c #', "C-u C-c \%"))
self.add_action_and_bindings(LatexInsertSquotes(), ("M-'",)) self.add_action_and_bindings(LatexInsertSquotes(), ("M-'",))
self.add_action_and_bindings(LatexInsertDquotes(), ('M-"',)) self.add_action_and_bindings(LatexInsertDquotes(), ('M-"',))
self.add_action_and_bindings(LatexInsertBraces(), ('M-{',)) self.add_action_and_bindings(LatexInsertBraces(), ('M-{',))