summaryrefslogtreecommitdiff
path: root/pygments/styles
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2017-01-22 19:29:02 +0100
committerGeorg Brandl <georg@python.org>2017-01-22 19:29:02 +0100
commitf4ae879f01a412a44f3a1114bbb63ff895a86670 (patch)
tree7d6f6523aa91564954031af917ced33418ab6850 /pygments/styles
parent6068b24c07b210aed357e5abcdc923291559278a (diff)
downloadpygments-f4ae879f01a412a44f3a1114bbb63ff895a86670.tar.gz
ABAP: a few minor fixes
Diffstat (limited to 'pygments/styles')
-rw-r--r--pygments/styles/__init__.py1
-rw-r--r--pygments/styles/abap.py46
2 files changed, 30 insertions, 17 deletions
diff --git a/pygments/styles/__init__.py b/pygments/styles/__init__.py
index e1c0c39c..839a9b78 100644
--- a/pygments/styles/__init__.py
+++ b/pygments/styles/__init__.py
@@ -43,6 +43,7 @@ STYLE_MAP = {
'algol_nu': 'algol_nu::Algol_NuStyle',
'arduino': 'arduino::ArduinoStyle',
'rainbow_dash': 'rainbow_dash::RainbowDashStyle',
+ 'abap': 'abap::AbapStyle',
}
diff --git a/pygments/styles/abap.py b/pygments/styles/abap.py
index b2c04e3e..91286a3a 100644
--- a/pygments/styles/abap.py
+++ b/pygments/styles/abap.py
@@ -1,17 +1,29 @@
-from pygments.style import Style
-from pygments.token import Keyword, Name, Comment, String, Error, \
- Number, Operator, Generic
-
-class AbapStyle(Style):
- default_style = ""
- styles = {
- Comment: 'italic #888',
- Comment.Special: '#888',
- Keyword: '#00f',
- Operator.Word: '#00f',
- Name: '#000',
- Number: '#3af',
- String: '#5a2',
-
- Error: '#F00'
- } \ No newline at end of file
+# -*- coding: utf-8 -*-
+"""
+ pygments.styles.abap
+ ~~~~~~~~~~~~~~~~~~~~
+
+ ABAP workbench like style.
+
+ :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
+ :license: BSD, see LICENSE for details.
+"""
+
+from pygments.style import Style
+from pygments.token import Keyword, Name, Comment, String, Error, \
+ Number, Operator
+
+
+class AbapStyle(Style):
+ default_style = ""
+ styles = {
+ Comment: 'italic #888',
+ Comment.Special: '#888',
+ Keyword: '#00f',
+ Operator.Word: '#00f',
+ Name: '#000',
+ Number: '#3af',
+ String: '#5a2',
+
+ Error: '#F00',
+ }