aboutsummaryrefslogtreecommitdiff
path: root/src/syntax_kinds
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax_kinds')
-rw-r--r--src/syntax_kinds/generated.rs88
-rw-r--r--src/syntax_kinds/generated.rs.tera13
2 files changed, 0 insertions, 101 deletions
diff --git a/src/syntax_kinds/generated.rs b/src/syntax_kinds/generated.rs
index 655ec4ea5..84f90c593 100644
--- a/src/syntax_kinds/generated.rs
+++ b/src/syntax_kinds/generated.rs
@@ -504,93 +504,5 @@ impl SyntaxKind {
504 }; 504 };
505 Some(tok) 505 Some(tok)
506 } 506 }
507
508 pub(crate) fn static_text(self) -> Option<&'static str> {
509 let tok = match self {
510 SEMI => ";",
511 COMMA => ",",
512 L_PAREN => "(",
513 R_PAREN => ")",
514 L_CURLY => "{",
515 R_CURLY => "}",
516 L_BRACK => "[",
517 R_BRACK => "]",
518 L_ANGLE => "<",
519 R_ANGLE => ">",
520 AT => "@",
521 POUND => "#",
522 TILDE => "~",
523 QUESTION => "?",
524 DOLLAR => "$",
525 AMP => "&",
526 PIPE => "|",
527 PLUS => "+",
528 STAR => "*",
529 SLASH => "/",
530 CARET => "^",
531 PERCENT => "%",
532 DOT => ".",
533 DOTDOT => "..",
534 DOTDOTDOT => "...",
535 DOTDOTEQ => "..=",
536 COLON => ":",
537 COLONCOLON => "::",
538 EQ => "=",
539 EQEQ => "==",
540 FAT_ARROW => "=>",
541 EXCL => "!",
542 NEQ => "!=",
543 MINUS => "-",
544 THIN_ARROW => "->",
545 LTEQ => "<=",
546 GTEQ => ">=",
547 PLUSEQ => "+=",
548 MINUSEQ => "-=",
549 AMPAMP => "&&",
550 PIPEPIPE => "||",
551 SHL => "<<",
552 SHR => ">>",
553 SHLEQ => "<<=",
554 SHREQ => ">>=",
555
556 USE_KW => "use",
557 FN_KW => "fn",
558 STRUCT_KW => "struct",
559 ENUM_KW => "enum",
560 TRAIT_KW => "trait",
561 IMPL_KW => "impl",
562 TRUE_KW => "true",
563 FALSE_KW => "false",
564 AS_KW => "as",
565 EXTERN_KW => "extern",
566 CRATE_KW => "crate",
567 MOD_KW => "mod",
568 PUB_KW => "pub",
569 SELF_KW => "self",
570 SUPER_KW => "super",
571 IN_KW => "in",
572 WHERE_KW => "where",
573 FOR_KW => "for",
574 LOOP_KW => "loop",
575 WHILE_KW => "while",
576 IF_KW => "if",
577 ELSE_KW => "else",
578 MATCH_KW => "match",
579 CONST_KW => "const",
580 STATIC_KW => "static",
581 MUT_KW => "mut",
582 UNSAFE_KW => "unsafe",
583 TYPE_KW => "type",
584 REF_KW => "ref",
585 LET_KW => "let",
586 MOVE_KW => "move",
587 RETURN_KW => "return",
588 AUTO_KW => "auto",
589 DEFAULT_KW => "default",
590 UNION_KW => "union",
591 _ => return None,
592 };
593 Some(tok)
594 }
595} 507}
596 508
diff --git a/src/syntax_kinds/generated.rs.tera b/src/syntax_kinds/generated.rs.tera
index 197f720e1..90618721a 100644
--- a/src/syntax_kinds/generated.rs.tera
+++ b/src/syntax_kinds/generated.rs.tera
@@ -69,18 +69,5 @@ impl SyntaxKind {
69 }; 69 };
70 Some(tok) 70 Some(tok)
71 } 71 }
72
73 pub(crate) fn static_text(self) -> Option<&'static str> {
74 let tok = match self {
75{%- for t in concat(a=single_byte_tokens, b=multi_byte_tokens) %}
76 {{t.1}} => "{{t.0}}",
77{%- endfor %}
78{% for kw in concat(a=keywords, b=contextual_keywords) %}
79 {{kw | upper}}_KW => "{{kw}}",
80{%- endfor %}
81 _ => return None,
82 };
83 Some(tok)
84 }
85} 72}
86 73