ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PythonHighlighter.cpp File Reference
#include "PythonHighlighter.h"
#include "ColorScheme.h"
Include dependency graph for PythonHighlighter.cpp:

Go to the source code of this file.

Variables

static const QStringList s_Keywords
 
static const QStringList s_Operators
 
static const QStringList s_Braces = {"\\{", "\\}", "\\‍(", "\\‍)", R"([)", R"(])"}
 

Variable Documentation

◆ s_Braces

const QStringList s_Braces = {"\\{", "\\}", "\\‍(", "\\‍)", R"([)", R"(])"}
static

Definition at line 50 of file PythonHighlighter.cpp.

◆ s_Keywords

const QStringList s_Keywords
static
Initial value:
= {
"and", "assert", "break", "class", "continue", "def", "del", "elif",
"else", "except", "exec", "finally", "for", "from", "global", "if",
"import", "in", "is", "lambda", "not", "or", "pass", "print",
"raise", "return", "try", "while", "yield", "None", "True", "False"}

Definition at line 12 of file PythonHighlighter.cpp.

◆ s_Operators

const QStringList s_Operators
static
Initial value:
= {"=",
"==",
"!=",
"<",
"<=",
">",
">=",
"\\+",
"-",
"\\*",
"/",
"//",
"\\%",
"\\*\\*",
"\\+=",
"-=",
"\\*=",
"/=",
"\\%=",
"\\^",
"\\|",
"\\&",
"\\~",
">>",
"<<"}

Definition at line 19 of file PythonHighlighter.cpp.