We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c443f43 commit cb8e104Copy full SHA for cb8e104
ihp-ide/IHP/IDE/SchemaDesigner/Parser.hs
@@ -60,7 +60,7 @@ stringLiteral :: Parser String
60
stringLiteral = char '\'' *> manyTill Lexer.charLiteral (char '\'')
61
62
parseDDL :: Parser [Statement]
63
-parseDDL = optional space >> manyTill statement eof
+parseDDL = optional space >> (restrict <|> manyTill statement eof)
64
65
statement = do
66
space
@@ -996,3 +996,11 @@ commit = do
996
removeTypeCasts :: Expression -> Expression
997
removeTypeCasts (TypeCastExpression value _) = value
998
removeTypeCasts otherwise = otherwise
999
+
1000
+restrict = do
1001
+ lexeme "\\restrict"
1002
+ key <- identifier
1003
+ inner <- manyTill statement (lexeme "\\unrestrict")
1004
+ symbol key
1005
+ eof
1006
+ pure inner
0 commit comments