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

manual fixes + editor syntax highlighting #13207

Merged
merged 8 commits into from
Apr 4, 2014
Merged

manual fixes + editor syntax highlighting #13207

merged 8 commits into from
Apr 4, 2014

Conversation

emberian
Copy link
Member

No description provided.

@emberian
Copy link
Member Author

cc @nikomatsakis @pcwalton @brson

In particular I'm not sure about the style here. I've taken some liberties in what I think the language reference should look like. I think that, after I'm done implementing tbaa, I will spend some significant time wrangling with the manual.

@emberian
Copy link
Member Author

(starting with a grammar)

@alexcrichton
Copy link
Member

#13215 also adds support in vim for the new attribute syntax.

within. Attributes that are not terminated by a semi-colon apply to the next entity.
Attributes with a bang ("!") after the hash ("#") apply to the item that the
attribute is declared within. Attributes that do not have a bang after the
hash by a semi-colon apply to the next item.
Copy link
Contributor

Choose a reason for hiding this comment

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

there is no semi-colon in the new attributes syntax. why you mention it here?

Copy link
Member Author

Choose a reason for hiding this comment

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

oops, bad edit, good catch.

attr : ident [ '=' literal
| '(' attr_list ')' ] ? ;
| '(' attr_list ')' ] ?
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm pretty sure the terminating ; on the EBNF rules is required.

@lilyball
Copy link
Contributor

lilyball commented Apr 4, 2014

r=me with my comments addressed.

@lilyball
Copy link
Contributor

lilyball commented Apr 4, 2014

@cmr r=me after squash.

emberian added 4 commits April 4, 2014 02:08
- Sort attributes lexicographically
- Use new attribute syntax consistently
- Fix wording describing new attribute syntax
- Expand section on `repr`
@bors bors closed this Apr 4, 2014
@bors bors merged commit b727bb7 into rust-lang:master Apr 4, 2014
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Sep 13, 2022
fix: add semicolon completion to mod

fixes rust-lang#13196

`@Veykril` The tests are passing. I added one specifically for this case.
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.

5 participants