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

Updated ACME grammar from GoDot #11

Merged
merged 1 commit into from
Jun 21, 2018
Merged

Updated ACME grammar from GoDot #11

merged 1 commit into from
Jun 21, 2018

Conversation

MatthewCallis
Copy link
Owner

No description provided.

Copy link
Collaborator

@georgjz georgjz left a comment

Choose a reason for hiding this comment

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

I added two suggestions.

name: 'keyword.operator.acme'
}
# Operators II
# Operators (don't work)
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the trouble with this? When I uncomment it, it works fine, as do Operators II.

Have you checked if your syntax theme in Atom highlights operators? I found that some syntax themes simply do not highlight certain scopes. I had that problem when writing a grammar for 6809 assembly, my grammar code was correct but my syntax theme simply didn't include code for highlighting certain scopes. Switching between several syntax themes sometimes reveals that problem.

EDIT: I use Monokai Seti as syntax theme

Copy link
Owner Author

Choose a reason for hiding this comment

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

I hadn't tried, I will uncomment them.

@@ -33,74 +33,99 @@ repository:
# symbols
symbols:
patterns: [
# Labels (at beginning of a line)
{
match: '^[A-Za-z][A-Za-z0-9_:]*'
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suggest changing this to

match: '^[A-Za-z\\._][A-Za-z0-9_:]*'

Global labels can start with a underscore, local labels with a colon.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks, updated! I'm just doing this PR on GoDot's behalf.

@MatthewCallis MatthewCallis force-pushed the ACME-UPDATES branch 3 times, most recently from 9bdc001 to dc9362e Compare June 21, 2018 17:34
@MatthewCallis
Copy link
Owner Author

I fixed the items you pointed out, I trusted that GoDot had tested this but the syntax highlighting issue makes sense, thank you!

@MatthewCallis MatthewCallis merged commit ffbb1c6 into master Jun 21, 2018
@MatthewCallis MatthewCallis deleted the ACME-UPDATES branch June 21, 2018 17:56
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