Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

underscore breaks parsing #18

Open
janwing opened this issue Apr 7, 2020 · 1 comment
Open

underscore breaks parsing #18

janwing opened this issue Apr 7, 2020 · 1 comment

Comments

@janwing
Copy link

janwing commented Apr 7, 2020

The following signalhandling breaks the plugin because of the underscore.
onClicked: bridge.button_clicked(index+1)
This line works:
onClicked: bridge.buttonclicked(index+1)

tsheinen added a commit to tsheinen/intellij-qml that referenced this issue Jun 13, 2020
i changed the lexer match regex for identifiers from [a-zA-Z0-9\.]+ to [$\p{L}\p{Nl}_][0-9\p{L}\p{Nl}\p{Mn}\p{Mc}\p{Nd}_$.]* to more closely match the QML/JavaScript identifier rules.
@Sayanel01
Copy link

_ break parsing also outside of javascript, eg id: my_id breaks parsing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants