Skip to content

Conversation

Tamnac
Copy link
Contributor

@Tamnac Tamnac commented Sep 10, 2024

  • fix formatting (should be all 2-space indents now)
  • couple of improvements suggested by @Guldoman
  • add support for node and nested multiline comments (also thanks to guldoman)

Copy link
Member

@Guldoman Guldoman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a version bump.

Comment on lines +48 to +51
{
pattern = { "/%-.*{", "}" },
type = "comment", syntax = node_comment
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My suggestion in #477 also covered comments like this:

mynode /-"commented" "not commented" {
  a
  b
}

This doesn't, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, your suggestion was very helpful but it only 80% worked, so I made some tweaks. This is how it behaves now, which I believe matches the spec

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, only the single parameter should be commented.
In what cases did my suggestion not work?

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.

2 participants