From 82c7bcbcb6ea6043fe9e0efeb49bb81d960e7e63 Mon Sep 17 00:00:00 2001
From: Gustaf Carefall <106698658+Gustaf-C@users.noreply.github.com>
Date: Thu, 16 Apr 2026 23:13:12 +0200
Subject: [PATCH] Remove misleading highlighting for properties/methods/struct
accesses
---
Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage b/Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage
index b6b7e0d..e08f373 100644
--- a/Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage
+++ b/Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage
@@ -1844,7 +1844,7 @@
name
meta.function-call.parens.matlab
begin
- ([a-zA-Z][a-zA-Z0-9_]*)\s*(\()
+ (?<!\.)\b([a-zA-Z][a-zA-Z0-9_]*)\s*(\()
end
(\)|(?<!\.{3}.*)\n)
beginCaptures
@@ -3045,15 +3045,6 @@
- property
-
- comment
- Class property or enumeration member access
- name
- variable.other.property.matlab
- match
- (?<=\.)[a-zA-Z][a-zA-Z0-9_]*(?![a-zA-Z0-9_]|(?:\(|\{|\.\())
-
readwrite_variable
comment