Skip to content

Commit

Permalink
add event keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
bryankenote committed Jan 14, 2025
1 parent f650c2e commit 5566f21
Show file tree
Hide file tree
Showing 9 changed files with 502 additions and 399 deletions.
805 changes: 406 additions & 399 deletions src/main/gen/io/github/facilityapi/intellij/lexer/_FsdLexer.java

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions src/main/gen/io/github/facilityapi/intellij/parser/FsdParser.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions src/main/gen/io/github/facilityapi/intellij/psi/FsdEventSpec.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/main/gen/io/github/facilityapi/intellij/psi/FsdTypes.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class FsdSyntaxHighlighter : SyntaxHighlighterBase() {
FsdTypes.SERVICE,
FsdTypes.DATA,
FsdTypes.METHOD,
FsdTypes.EVENT,
FsdTypes.ENUM,
FsdTypes.ERRORS,
FsdTypes.EXTERN,
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/io/github/facilityapi/intellij/fsd.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ private field_list ::= '{' (comment+ | decorated_field)* '}' { pin=1 }
request_fields ::= field_list
response_fields ::= field_list
method_spec ::= method identifier_declaration request_fields ':' response_fields { pin=1 }
event_spec ::= event identifier_declaration request_fields ':' response_fields { pin=1 }

data_spec ::= data identifier_declaration field_list { pin=1 }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ MARKDOWN_TEXT=.+

"extern" { yybegin(EXTERN_DECL); return EXTERN; }
"method" { yybegin(METHOD_BODY); return METHOD; }
"event" { yybegin(METHOD_BODY); return EVENT; }
"data" { yybegin(DATA_BODY); return DATA; }
"errors" { yybegin(LIST_BODY); return ERRORS; }
"enum" { yybegin(LIST_BODY); return ENUM; }
Expand Down

0 comments on commit 5566f21

Please sign in to comment.