Skip to content

micro editor: Update C3 syntax rules in c3.yaml#43

Open
ManuLinares wants to merge 10 commits intoc3lang:mainfrom
ManuLinares:patch-2
Open

micro editor: Update C3 syntax rules in c3.yaml#43
ManuLinares wants to merge 10 commits intoc3lang:mainfrom
ManuLinares:patch-2

Conversation

@ManuLinares
Copy link
Copy Markdown
Member

@ManuLinares ManuLinares commented Feb 21, 2026

C3 version: 0.8.0

@LowByteFox
Copy link
Copy Markdown

I have looked through the stdlib quickly, everything seems fine, at least to me

hopefully I didn't miss something 😅

@LowByteFox
Copy link
Copy Markdown

uh oh
image

@ManuLinares
Copy link
Copy Markdown
Member Author

uh oh

I can't seem to be able to handle both contracts and vectors <* ... *> [<*>]

@ManuLinares ManuLinares marked this pull request as draft February 21, 2026 22:33
@LowByteFox
Copy link
Copy Markdown

LowByteFox commented Feb 22, 2026

I'm trying to fix this myself as well

the go regexp package does not support negative lookbehind

I came up with this: ([^[]|^|\s+)<\*, not ideal as it'll match:

bla bla bla<*
          ^^^

but I suppose this deviation is fine, I would just put a comment there that the regex engine does not support negative lookbehind and this got the closest result

it works
@ManuLinares
Copy link
Copy Markdown
Member Author

I updated it, please check.

@lerno
Copy link
Copy Markdown
Contributor

lerno commented Mar 2, 2026

@LowByteFox how does it look?

@LowByteFox
Copy link
Copy Markdown

Looks fine to me!

@ManuLinares
Copy link
Copy Markdown
Member Author

Yep

@LowByteFox
Copy link
Copy Markdown

bad news...
image

@ManuLinares ManuLinares marked this pull request as ready for review April 13, 2026 19:21
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