Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have sync show as a keyword when used on a block #23

Open
jabraham17 opened this issue Nov 1, 2024 · 0 comments
Open

Have sync show as a keyword when used on a block #23

jabraham17 opened this issue Nov 1, 2024 · 0 comments

Comments

@jabraham17
Copy link
Member

The Chapel language allows sync in two contexts. It can be used as a type modifier, but it can also be used on a block.

// type
var x: sync int;

// type
proc foo(x: sync int) { }

// block
sync begin { }

// block
sync { }

Currently the highlighter treats all sync keywords as the type version, which can look weird with some syntax highlight themes that distinguish between types and plain keywords.

Ideally, the highlighter would distinguish between the two. However doing this with only regex is non-trivial.

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

No branches or pull requests

1 participant