https://bugs.kde.org/show_bug.cgi?id=432785

            Bug ID: 432785
           Summary: javascript-react.xml has external file ref in a Rule's
                    context
           Product: frameworks-syntax-highlighting
           Version: unspecified
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: g...@genethomas.com
                CC: walter.von.entfer...@posteo.net
  Target Milestone: ---

SUMMARY

javascript-react.xml  contains:

<DetectChar attribute="Normal Text" context="NoRegExp##JavaScript" char="]"
endRegion="List" />

My reading of
https://docs.kde.org/stable5/en/applications/katepart/highlight.html only says
that a Rule's context can contain references like:

"The context can be identified by:

1. An identifier, which is the name of the other context.
2. An order telling the engine to stay in the current context (#stay), or to
pop back to a previous context used in the string (#pop).
3. To go back more steps, the #pop keyword can be repeated: #pop#pop#pop
4. An order followed by an exclamation mark (!) and an identifier, which will
make the engine first follow the order and then switch to the other context,
e.g. #pop#pop!OtherContext.
"

Only <IncludeRules> or <list><include> can contain name##file refs.

STEPS TO REPRODUCE
1. Load a .html file into a syntax highlighting engine. This includes
javascript-react.xml

OBSERVED RESULT

A complaint about the NoRegExp##JavaScript not being local

EXPECTED RESULT

There should not be file ref like NoRegExp##JavaScript in a Rule's context

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

head of https://github.com/KDE/syntax-highlighting

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to