mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Extend the design's keyword list with the keywords from all the approved proposals to date. Update our four syntax highlighters to have matching keyword lists. There are a few other stale things in some of the syntax highlighters; those are not fixed here. Assisted-by: Claude via Antigravity
56 lines
1.0 KiB
Plaintext
56 lines
1.0 KiB
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
// --- operators
|
|
|
|
>>= <=> <<= ->? &= ^= := :? == => != >= >> <= <> << <- -= -> -- %= |= += ++ /=
|
|
*= ~= & @ ^ : = ! > < - % . | + ? / * ~ \
|
|
and as impls in like not or typeof where
|
|
|
|
// --- special-keywords
|
|
|
|
break case continue else if for match return returned then while
|
|
default =>
|
|
|
|
// --- introducer-keywords
|
|
|
|
adapt alias choice class constraint fn import inline interface let library
|
|
match_first namespace observe require var
|
|
base
|
|
export
|
|
impl
|
|
package
|
|
|
|
// --- modifier-keywords
|
|
|
|
abstract const eval extend extern final generic musteval override partial
|
|
private protected ref runtime static template unsafe unused val virtual
|
|
base class
|
|
default
|
|
export import
|
|
impl fn
|
|
impl library
|
|
impl package
|
|
|
|
// --- misc-keywords
|
|
|
|
destroy each expand forall form friend
|
|
fn destroy
|
|
...expand
|
|
.base
|
|
|
|
// --- self-keywords
|
|
|
|
self Self
|
|
|
|
// --- package-roots
|
|
|
|
Core Cpp
|
|
|
|
// --- underscore
|
|
|
|
;
|
|
_
|
|
_some_var
|