diff options
author | amitkummer <49096391+amitkummer@users.noreply.github.com> | 2021-03-14 09:27:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 08:27:33 +0100 |
commit | a5af73f1b26b66a348798ccd645217ff1fac8fde (patch) | |
tree | 5c83852f90b2164314971e71291a6eba33183196 /tests/examplefiles/cpp | |
parent | d86dd2bbd07ed880d908aeab2a99af50a64142aa (diff) | |
download | pygments-git-a5af73f1b26b66a348798ccd645217ff1fac8fde.tar.gz |
Refactor CFamilyLexer (#1746)
* Remove duplicate lines in state
* Refactor ident regex for readability
Refactor ident regex changed in c1a0d82 to improve readability.
Refactor namespaced_ident regex added in c1a0d82 to improve readability.
* Fix inline keword lexing
* Fix indentation
* Refactor CLexer keywords to 'keywords' state
Diffstat (limited to 'tests/examplefiles/cpp')
-rw-r--r-- | tests/examplefiles/cpp/namespace.cpp.output | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/examplefiles/cpp/namespace.cpp.output b/tests/examplefiles/cpp/namespace.cpp.output index c6d8f9d2..d929cb03 100644 --- a/tests/examplefiles/cpp/namespace.cpp.output +++ b/tests/examplefiles/cpp/namespace.cpp.output @@ -34,7 +34,7 @@ 'exprimental' Name.Namespace ':' Operator ':' Operator -'inline' Keyword +'inline' Keyword.Reserved ' ' Text 'innner' Name.Namespace ' ' Text @@ -47,7 +47,7 @@ 'std' Name.Namespace ':' Operator ':' Operator -'inline' Keyword +'inline' Keyword.Reserved ' ' Text 'exprimental' Name.Namespace ':' Operator @@ -179,7 +179,7 @@ 'inner' Name.Namespace ':' Operator ':' Operator -'inline' Keyword +'inline' Keyword.Reserved ' ' Text 'pygments' Name.Namespace ' ' Text |