Skip to content

Commit

Permalink
parsing enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenkopp committed Oct 3, 2013
1 parent ec2948b commit 84e5f29
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ private bool IsConditionTerminator(TokenType type)
{
case TokenType.EndOfFile:
case TokenType.OpenCurlyBrace:
case TokenType.CloseCurlyBrace:
return true;

default:
Expand Down
2 changes: 1 addition & 1 deletion SassyStudio.Compiler/Parsing/Function.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public override bool Parse(IItemFactory itemFactory, ITextProvider text, ITokenS

ParseArguments(itemFactory, text, stream);

if (stream.Current.Type == TokenType.CloseFunctionBrace)
if (OpenBrace != null && stream.Current.Type == TokenType.CloseFunctionBrace)
CloseBrace = Children.AddCurrentAndAdvance(stream, SassClassifierType.FunctionBrace);
}

Expand Down
13 changes: 0 additions & 13 deletions SassyStudio.Compiler/Parsing/IVariableScope.cs

This file was deleted.

1 change: 0 additions & 1 deletion SassyStudio.Compiler/SassyStudio.Compiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
<Compile Include="Parsing\DocumentParserFactory.cs" />
<Compile Include="Parsing\PercentageUnit.cs" />
<Compile Include="Parsing\Rules\FontFaceDirective.cs" />
<Compile Include="Parsing\IVariableScope.cs" />
<Compile Include="Lexing\DefaultLexerFactory.cs" />
<Compile Include="Lexing\ILexer.cs" />
<Compile Include="Lexing\ILexerFactory.cs" />
Expand Down

0 comments on commit 84e5f29

Please sign in to comment.