From 4dcdb0c79c041e59b2f1d810816e0b823bb83f65 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 13 Jul 2015 10:32:08 +0200 Subject: [PATCH] xBase: add .ch extension + sample --- lib/linguist/languages.yml | 1 + samples/xBase/sample.ch | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 samples/xBase/sample.ch diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 03a6c6df..85261f69 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -3783,5 +3783,6 @@ xBase: color: "#403a40" extensions: - .prg + - .ch tm_scope: none ace_mode: text diff --git a/samples/xBase/sample.ch b/samples/xBase/sample.ch new file mode 100644 index 00000000..308f1e1c --- /dev/null +++ b/samples/xBase/sample.ch @@ -0,0 +1,30 @@ +#ifndef __HARBOUR__ + #ifndef __XPP__ + #ifndef __CLIP__ + #ifndef FlagShip + #define __CLIPPER__ + #endif + #endif + #endif +#endif + +/* File create flags */ +#define FC_NORMAL 0 /* No file attributes are set */ +#define FC_READONLY 1 +#define FC_HIDDEN 2 +#define FC_SYSTEM 4 + +// New-style comment +#command SET DELETED => Set( _SET_DELETED, <(x)> ) +#command SET DELETED () => Set( _SET_DELETED, ) +#command @ , SAY [PICTURE ] [COLOR ] => ; + DevPos( , ) ; DevOutPict( , [, ] ) + +#command ENDIF <*x*> => endif + +#ifdef __CLIPPER__ + #xtranslate hb_MemoWrit( [] ) => MemoWrit( ) + #xtranslate hb_dbExists( ) => File( ) + #xtranslate hb_dbPack() => __dbPack() + #xtranslate hb_default( @, ) => iif( StrTran( ValType( ), "M", "C" ) == StrTran( ValType( ), "M", "C" ),, := , ) +#endif