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 3, 2025
1 parent f650c2e commit 88818ff
Show file tree
Hide file tree
Showing 8 changed files with 355 additions and 258 deletions.
518 changes: 260 additions & 258 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.

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 METHOD; }
"data" { yybegin(DATA_BODY); return DATA; }
"errors" { yybegin(LIST_BODY); return ERRORS; }
"enum" { yybegin(LIST_BODY); return ENUM; }
Expand Down

0 comments on commit 88818ff

Please sign in to comment.