Package org.sonar.plugins.python
Class PythonHighlighter
java.lang.Object
org.sonar.plugins.python.PythonHighlighter
Colors Python code. Currently colors:
-
String literals. Examples:
"hello" 'hello' """ hello hello again """ -
Keywords. Example:
def -
Numbers. Example:
123 123L 123.45 123.45e-10 123+88.99JFor a negative number, the "minus" sign is not colored. -
Comments. Example:
# some comment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhighlight(org.sonar.api.batch.sensor.SensorContext sensorContext, PythonVisitorContext visitorContext, PythonInputFile inputFile)
-
Constructor Details
-
PythonHighlighter
-
PythonHighlighter
public PythonHighlighter()
-
-
Method Details
-
highlight
public void highlight(org.sonar.api.batch.sensor.SensorContext sensorContext, PythonVisitorContext visitorContext, PythonInputFile inputFile)
-