mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 19:45:48 +01:00
A push towards better editor support. See utils/treesitter/README.md --------- Co-authored-by: josh11b <josh11b@users.noreply.github.com>
2.1 KiB
2.1 KiB
Words
Table of contents
Overview
A word is a lexical element formed from a sequence of letters or letter-like
characters, such as fn or Foo or Int.
The exact lexical form of words has not yet been settled. However, Carbon will follow lexical conventions for identifiers based on Unicode Annex #31. TODO: Update this once the precise rules are decided; see the Unicode source files proposal.
Carbon source files, including comments and string literals, are required to be in Unicode Normalization Form C (NFC).
Keywords
The following words are interpreted as keywords:
abstractadaptaddraliasandapiasautobasebreakcasechoiceclassconstraintcontinuedefaultdestructorelseextendfinalfnforforallfriendifimplimplsimportininterfaceletlibrarylikematchnamespacenotobserveoroverridepackagepartialprivateprotectedrequirereturnreturnedSelftemplatethentypevarvirtualwherewhile
Alternatives considered
References
- Proposal #142: Unicode source files