Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Inconsistent primitives [grammar] #1161

Open
kevmoo opened this issue Sep 15, 2017 · 1 comment
Open

Inconsistent primitives [grammar] #1161

kevmoo opened this issue Sep 15, 2017 · 1 comment

Comments

@kevmoo
Copy link

kevmoo commented Sep 15, 2017

From source:

'match': '(?<!\\$)\\b(?:void|bool|num|int|double|dynamic|var)\\b(?!\\$)'
'name': 'storage.type.primitive.dart'

bool, num, int, double: these are all in dart:core. Why not add String, Object, List, etc.

Some ways to think of classification:

var, dynamic, void

  • special "things"
  • not in dart:core
  • I like this.

All classes in dart:core

  • this is a BIG list, may change.
  • Will also be "wrong" if a user does `import "dart:core as core;"
    • in such a case int isn't special. core.int is.
@kevmoo
Copy link
Author

kevmoo commented Sep 15, 2017

CC @devoncarew

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

No branches or pull requests

1 participant