[vim/vim] Fix QML syntax highlighting for ternary operator (Issue #20657)

3 views
Skip to first unread message

betheev

unread,
5:36 AM (4 hours ago) 5:36 AM
to vim/vim, Subscribed
betheev created an issue (vim/vim#20657)

Steps to reproduce

Open any QML file and declare a property using Javascript's optional chaining operator ?.. The current syntax region definition will treat is a ternary operator ? : and will incorrectly highlight the text.

(I tried to contact the maintainer two weeks ago but didn't hear back from him. That's why I am creating this issue.)

Expected behaviour

The qml syntax definition is able to distinguish between the ternary operator and the optional chaining operator. I have attached the patch to fix the bug.

Patch: qml-syntax.patch

Version of Vim

9.1.1176

Environment

OS: Ubuntu 24.04
Terminal: Gnome Terminal v 3.52
$TERM: xterm-256color
Shell: bash 5.2.21

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20657@github.com>

betheev

unread,
6:12 AM (3 hours ago) 6:12 AM
to vim/vim, Subscribed
betheev left a comment (vim/vim#20657)

Duplicate of #19988


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20657/4825746695@github.com>

Reply all
Reply to author
Forward
0 new messages