Hello,
I'm a xbase programmer. The files I edit are .PRG files. A .PRG file is a source file for any xbase compiler (xHarbour, Clipper, Xbase, Microsoft FoxPro, etc)
How can I configure TextMate so it highlights my source code correctly?
Thank you in advance! ;-)
These are the RegEx'es for my languages:
PRG Keywords: "(?i)^(IF|ELSEIF|ELSE|ENDIF|DO +WHILE|DO +CASE|DO|WHILE| LOOP|EXIT +(FUNCTION|PROCEDURE)|EXIT|ENDCASE|ENDDO|CASE|OTHERWISE| SWITCH|DEFAILT|ENDCLASS|FOR +EACH|FOR|NEXT|BEGIN +SEQUENCE|BREAK| RECOVER( +USING)?|ENDSEQUENCE|END +SEQUENCE|LOCAL|STATIC +(FUNCTION| PROCEDURE)|STATIC|METHOD|PRIVATE|PUBLIC|MEMVAR|DECALRE|FIELD|GLOBAL +EXTERNAL|GLOBAL|EXTERNAL|EXTERN|ANNOUNCE|REQUEST|PROCEDURE|FUNCTION| TRY|CATCH|INIT +(FUNCTION|PROCEDURE)|EXIT|RETURN|SAVE|RESTORE|CLASS| VAR|DATA|METHOD|ACCESS|ASSIGN|PROTECTED|READONLY|EXPORTED|PUBLISHED| HIDDEN|END|READ|WITH +OBJECT|CLEAR +SCREEN|DEFAULT)( +|$)"
PRG Reserved Words: "(?i)(IIF|WHILE|IN|STEP|TO|EXTERNAL|PROTECTED| READONLY|EXPORTED|PUBLISHED|INLINE|PRIVATE|HIDDEN|VIRTUAL|GET|SAY|GET| CLEAR) *"
PRG Literals: "(".*"|'.*'|E".*") *"
PRG Operators: "(?i)(++|--|**|:=|<>|>=|<=|==|!=|+=|-=|*=|/=|HAS| LIKE|.AND.|.OR.|.NOT.|[!@#$^&*(){}[]|/,><-=]|+) *"
PRG Functions: "(?i)^ *(INIT|EXIT|STATIC)? *(FUNCTION|PROCEDURE) + ([_a-z|0-9]+)"
PRG Methods: "(?i)^ *METHOD +([_a-z|0-9]+) *(([^)]*))? *CLASS + ([_a-z|0-9]+)" PRG Methods(2): "(?i)^ *METHOD +([_a-z|0-9]+) *: *([_a-z|0-9]+) *(([^ )]*))?"
PRG Classes: "(?i)^ *CLASS +([_a-z|0-9]+)"
PRG ClassVars: "(?i)^ *CLASS *(VAR|DATA)"
PRG InlineComment : "(^*)|//|&&"
-- Sincerely,
Patrick Mast