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

Line continuations on anonymous functions #54

Closed watermarkhu closed 1 year ago

watermarkhu commented 1 year ago

Consider the following case of line continuations within anonymous functions: image

Using the Solarized light theme, we can see that line continuation does not color properly.

image

Actually after the line continuation the scope of the anonymous function is lost, and subsequent line continuations are colored correctly as they are recognized as normal variables.