mathworks / MATLAB-Language-grammar

This repository contains a regular expression based language grammar for MATLAB to be used by GitHub Linguist for highlighting MATLAB code on GitHub
50 stars 17 forks source link

Parenthesis not tokenized correctly when there is space preceding it #77

Open goldrik opened 7 months ago

goldrik commented 7 months ago

When there is a space before the last parenthesis, it is not identified to be the closing paren of the cellfun() function, shown below. The top two lines have the parens colored yellow (correct), while the bottom two lines show the red/yellow mismatch (incorrect)

Screenshot 2024-03-05 at 12 26 34 PM (3)

The top two have the token punctuation.section.group.end.matlab

The bottom two dont have that token, but instead have string.unquoted.matlab meta.function-call.command.matlab