/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.1
src/OneScript.Language/LexicalAnalysis/CommentLexerState.cs
25 строк
820 B
Michael Rybakin
fix #1023: директивы препроцессора допустимы только на новой строке
07 ноя 2020, 17:47
07 ноя 2020, 17:47
eaaf60f
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ namespace OneScript.Language.LexicalAnalysis { class CommentLexerState : LexerState { public override Lexem ReadNextLexem(SourceCodeIterator iterator) { iterator.MoveNext(); System.Diagnostics.Debug.Assert(iterator.CurrentSymbol == '/'); return new Lexem() { Content = iterator.ReadToLineEnd(), Type = LexemType.Comment, Token = Token.NotAToken }; } } }