Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Massive overhaul of grammar #87

Merged
merged 36 commits into from
Dec 30, 2016
Merged

Massive overhaul of grammar #87

merged 36 commits into from
Dec 30, 2016

Conversation

damieng
Copy link
Contributor

@damieng damieng commented Dec 26, 2016

Ideally this would have been smaller changes but the grammar had many many issues.

This adds support to or fixes highlighting for:

  • Generic methods
  • Generic types
  • Type constraints
  • Extern fields
  • Nullable/pointer built-in types
  • Lambda method syntax (C# 6)
  • Method bodies
  • Type recognition on cast/as/in/sizeof/typeof
  • Interface names (convention based on I[A-Z] in absence of type engine)
  • Improvements in newline handling (allowing more, not requiring any)

Ideally would have more work done on newlines and comments being allowed everywhere but that's an ongoing issue.

Here's what code can now look like using a VS-style theme I put together;

image

Still remaining before merge:

  1. Fix specs
  2. Get basic types parsing in method bodies

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants