This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Weak delimter on "-" but not on "->" in syntax file?

Tags: None
(comma "," separated)
lightnb
Registered Member
Posts
12
Karma
0
Is it possible to set-up the syntax file for php to treat "->" as a boundary, but not "-"?

It's possible to add
Code: Select all
<keywords casesensitive="0" weakDeliminator="-"/>
to the
Code: Select all
<general>
section, but this breaks the object operator by picking up the hyphen after the variable name while leaving the greater than sign behind.

ie. "some-string" should be one word while "$MyObject->DoSomething()" should be separated on "->".

Can this be done and if so, how?
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
If it doesn't simply work to put -> into that tag, I am not aware of another tag which does it for more than one character. That would need to be implemented in KTextEditor.


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]