summaryrefslogtreecommitdiffstats
path: root/source/slang/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/parser.cpp')
-rw-r--r--source/slang/parser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/parser.cpp b/source/slang/parser.cpp
index 3c63c9b56..35cc96b5c 100644
--- a/source/slang/parser.cpp
+++ b/source/slang/parser.cpp
@@ -2313,6 +2313,10 @@ namespace Slang
{
decl = new SetterDecl();
}
+ else if( AdvanceIf(parser, "ref") )
+ {
+ decl = new RefAccessorDecl();
+ }
else
{
Unexpected(parser);