Skip to content

Commit

Permalink
add float keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
bryankenote committed Jan 14, 2025
1 parent f650c2e commit eba9ce9
Show file tree
Hide file tree
Showing 6 changed files with 467 additions and 455 deletions.
912 changes: 460 additions & 452 deletions src/main/gen/io/github/facilityapi/intellij/lexer/_FsdLexer.java

Large diffs are not rendered by default.

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 @@ -27,6 +27,7 @@ class FsdSyntaxHighlighter : SyntaxHighlighterBase() {

FsdTypes.STRING,
FsdTypes.BOOLEAN,
FsdTypes.FLOAT,
FsdTypes.INT32,
FsdTypes.INT64,
FsdTypes.DOUBLE,
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/io/github/facilityapi/intellij/fsd.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ extern_decl ::= extern (data | enum) identifier ';'

decorated_field ::= attribute_list* field { pin=2 }
field ::= identifier ':' type [ '!' ] ';' { pin=3 }
type ::= (string | boolean | int32 | int64 | double | decimal | datetime | bytes | object | map | result | error | nullable | reference_type) [ type_parameter ] [ ('['']')* ]
type ::= (string | boolean | int32 | int64 | double | decimal | float | datetime | bytes | object | map | result | error | nullable | reference_type) [ type_parameter ] [ ('['']')* ]
type_parameter ::= '<' type '>' { pin=2 }
reference_type ::= typename
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ MARKDOWN_TEXT=.+

"string" { yybegin(METHOD_BODY_TYPE_END); return STRING; }
"boolean" { yybegin(METHOD_BODY_TYPE_END); return BOOLEAN; }
"float" { yybegin(METHOD_BODY_TYPE_END); return FLOAT; }
"int32" { yybegin(METHOD_BODY_TYPE_END); return INT32; }
"int64" { yybegin(METHOD_BODY_TYPE_END); return INT64; }
"double" { yybegin(METHOD_BODY_TYPE_END); return DOUBLE; }
Expand Down

0 comments on commit eba9ce9

Please sign in to comment.