dotnet / dotnet/vblang

VB spec corrections in definition of identifier

Open
#425 1 comment 0 reactions 1 assignee Assigned to @AnthonyDGreen View on GitHub
Dominant language
No language data
Stars
328
Forks
71
PR merge metrics
No merged PRs in 30d

Description

The VB spec says

> 2.2 Identifiers
> An _identifier_ is a name. Visual Basic identifiers conform to the **Unicode Standard Annex 15** with one exception: identifiers may begin with an underscore (connector) character. If an identifier begins with an underscore, it must contain at least one other valid identifier character to disambiguate it from a line continuation.

However, that is the wrong Annex. That should be Unicode Standard Annex #31.

See

http://unicode.org/reports/tr15/
http://unicode.org/reports/tr31/

We should probably also clarify that “underscore” refers only to Unicode U+005F ‘LOW LINE’ and not other connector characters. It used to be called ‘SPACING UNDERSCORE’ but Unicode changed its name some time ago.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.