/* ---------------------------------------------------------------------- * Peggy CREC Keyword File * $Id: ac_esy.kwd,v 1.10 2004/07/04 03:39:40 nzawa Exp nzawa $ * * [Language] * EmEditor 構文ファイル (*.esy) * * * Copyright (c) 2003-2004 Nzawa * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * ----------------------------------------------------------------------*/ Id: "EmEditorSyntax" Title: "EmEditor 構文ファイル" Extensions: "esy" TabStop: 4 BgColoring: On BaseLanguage: "TEXT" LineComment: ";" IdCharacters: "#" HeadingPattern: /^#Keyword/ Const NormalEqual = 2 Const NormalValue = 3 Const Keyword = 4 Const KeywordEqual = 5 Const KeywordValue = 6 Context 1: { // コメント /^\s*;.*/, FgComment // 通常の設定項目名 '#SpecialSyntax', FgKeyword, GoTo NormalEqual '#SingleQuote', FgKeyword, GoTo NormalEqual '#ScriptEnd', FgKeyword, GoTo NormalEqual '#ScriptBegin', FgKeyword, GoTo NormalEqual '#LineComment2', FgKeyword, GoTo NormalEqual '#LineComment1', FgKeyword, GoTo NormalEqual '#HighlightBraces', FgKeyword, GoTo NormalEqual '#Highlight', FgKeyword, GoTo NormalEqual '#Escape', FgKeyword, GoTo NormalEqual '#EndTag', FgKeyword, GoTo NormalEqual '#DoubleQuote', FgKeyword, GoTo NormalEqual '#ContinueQuote', FgKeyword, GoTo NormalEqual '#CommentEnd', FgKeyword, GoTo NormalEqual '#CommentBegin', FgKeyword, GoTo NormalEqual '#BeginTag', FgKeyword, GoTo NormalEqual // Keyword '#Keyword', FgKeyword, GoTo Keyword Default, FgText } Context NormalEqual: { '=', FgText, GoTo NormalValue /$/, GoTo 1 Default, FgHTMLIllegalCharacter } Context NormalValue: { /$/, GoTo 1 Default, FgString } Context Keyword: { 'word', FgKeyword, GoTo KeywordEqual 'rightall', FgKeyword, GoTo KeywordEqual 'regexp', FgKeyword, GoTo KeywordEqual 'insidetag', FgKeyword, GoTo KeywordEqual 'color', FgKeyword, GoTo KeywordEqual 'case', FgKeyword, GoTo KeywordEqual /$/, GoTo 1 Default, FgHTMLIllegalCharacter } Context KeywordEqual: { '=', FgText, GoTo KeywordValue /$/, GoTo 1 Default, FgHTMLIllegalCharacter } Context KeywordValue: { ',', FgText, GoTo Keyword /$/, GoTo 1 Default, FgString }