/* ---------------------------------------------------------------------- * Peggy CREC Keyword File * $Id: ac_csv.kwd,v 1.6 2004/07/04 03:39:30 nzawa Exp nzawa $ * * [Language] * Comma Separated Values (CSV) * * * 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: "CSV" Title: "CSV - Comma Separated Values" Extensions: "csv" TabStop: 4 BgColoring: On BaseLanguage: "TEXT" Const Field2 = SubLang1 Const Field3 = SubLang2 Const Field4 = SubLang3 Const Field5 = SubLang4 Const Field6 = SubLang5 Const Field7 = SubLang6 Const Field8 = SubLang7 Context 1: { /[^",]*/, FgString /"([^"]|"")*"/, FgString /,/, FgKeyword, PostGoTo Field2 /$/, GoTo 1 } Context Field2: { /[^",]*/, FgString /"([^"]|"")*"/, FgString /,/, FgKeyword, PostGoTo Field3 /$/, GoTo 1 } Context Field3: { /[^",]*/, FgString /"([^"]|"")*"/, FgString /,/, FgKeyword, PostGoTo Field4 /$/, GoTo 1 } Context Field4: { /[^",]*/, FgString /"([^"]|"")*"/, FgString /,/, FgKeyword, PostGoTo Field5 /$/, GoTo 1 } Context Field5: { /[^",]*/, FgString /"([^"]|"")*"/, FgString /,/, FgKeyword, PostGoTo Field6 /$/, GoTo 1 } Context Field6: { /[^",]*/, FgString /"([^"]|"")*"/, FgString /,/, FgKeyword, PostGoTo Field7 /$/, GoTo 1 } Context Field7: { /[^",]*/, FgString /"([^"]|"")*"/, FgString /,/, FgKeyword, PostGoTo Field8 /$/, GoTo 1 } Context Field8: { /[^",]*/, FgString /"([^"]|"")*"/, FgString /,/, FgKeyword, PostGoTo 1 /$/, GoTo 1 }