Added a generic 'code' lexer (which actually falls back to Python) to have a better distinction to 'text'.

Refs issue #52.
This commit is contained in:
Martin Mahner 2014-03-13 15:42:07 +01:00
parent e3f82db006
commit 1a0093ec0a

View file

@ -24,7 +24,8 @@ LEXER_LIST = sorted(LEXER_LIST)
# retrieve this.
LEXER_LIST = getattr(settings, 'DPASTE_LEXER_LIST', (
('text', 'Text'),
('text', '----------'),
('code', 'Code'),
('Specific Code', (
('abap', 'ABAP'),
('apacheconf', 'ApacheConf'),
('applescript', 'AppleScript'),
@ -62,6 +63,7 @@ LEXER_LIST = getattr(settings, 'DPASTE_LEXER_LIST', (
('monkey', 'Monkey'),
('mysql', 'MySQL'),
('numpy', 'NumPy'),
('objc', 'Obj-C'),
('ocaml', 'OCaml'),
('perl', 'Perl'),
('php', 'PHP'),
@ -93,6 +95,7 @@ LEXER_LIST = getattr(settings, 'DPASTE_LEXER_LIST', (
('xslt', 'XSLT'),
('yaml', 'YAML'),
))
))
LEXER_KEYS = dict(LEXER_LIST).keys()