Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kcs
Copy link
Contributor

@kcs kcs commented Oct 22, 2024

Currently the Matlab (including octave and SciLab) lexers do not recognize the ^ operator. Only the element-wise operator .^ is recognized. Although most of the time the element-wise operator is used, there are some cases for the normal operator to be used, like for example scalar power operation (2^16).

I also added a test case for this operator in the matlab sample code.

kcs added 2 commits October 22, 2024 18:27
Operator `^` was missing, only `.^` was recognized by the Matlab style
lexers
@birkenfeld
Copy link
Member

LGTM. Thanks!

@birkenfeld birkenfeld merged commit 4306a47 into pygments:master Oct 25, 2024
@Anteru Anteru added this to the 2.19.0 milestone Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants