Comandos FREEBasic
Comandos FREEBasic
Comandos FREEBasic
vim
" Vim syntax file " Language: FreeBasic " Maintainer: Mark Manning <[email protected]> " Updated: 10/22/2006 " " Description: " " Based originally on the work done by Allan Kelly <[email protected]> " Updated by Mark Manning <[email protected]> " Applied FreeBasic support to the already excellent support " for standard basic syntax (like QB). " " First version based on Micro$soft QBASIC circa " 1989, as documented in 'Learn BASIC Now' by " Halvorson&Rygmyr. Microsoft Press 1989. This syntax file " not a complete implementation yet. Send suggestions to " the maintainer. " " Quit when a (custom) syntax file was already loaded (Taken from c.vim) " if exists("b:current_syntax") finish endif " " Be sure to turn on the "case ignore" since current versions " of freebasic support both upper as well as lowercase " letters. - MEM 10/1/2006 " syn case ignore " " This list of keywords is taken directly from the FreeBasic " user's guide as presented by the FreeBasic online site. " syn keyword freebasicArrays ERASE LBOUND REDIM PRESERVE UBOUND syn keyword syn syn syn syn syn syn syn syn keyword keyword match match region region match keyword freebasicBitManipulation freebasicCompilerSwitches freebasicCompilerSwitches freebasicCompilerSwitches freebasicCompilerSwitches freebasicConditional freebasicConditional freebasicConditional freebasicConditional freebasicConsole freebasicConsole freebasicDataTypes freebasicDataTypes freebasicDateTime freebasicDateTime freebasicDateTime freebasicDebug freebasicErrorHandling freebasicErrorHandling freebasicErrorHandling freebasicFiles freebasicFiles freebasicFiles freebasicFiles freebasicFiles freebasicFiles freebasicFunctions freebasicFunctions freebasicFunctions freebasicGraphics freebasicGraphics freebasicGraphics freebasicGraphics freebasicGraphics freebasicGraphics freebasicHardware freebasicHardware freebasicLogical freebasicMath freebasicMath freebasicMemory freebasicMisc freebasicModularizing freebasicModularizing freebasicMultithreading freebasicShell freebasicEnviron freebasicLoops freebasicInclude freebasicInclude freebasicPointer freebasicPredefined freebasicPredefined freebasicPredefined freebasicPredefined freebasicPreProcessor freebasicPreProcessor freebasicPreProcessor BIT BITRESET BITSET HIBYTE HIWORD LOBYTE LOWORD SHL SHR DEFBYTE DEFDBL DEFINT DEFLNG DEFLNGINT DEFSHORT DEFSNG DEFSTR DEFUBYTE DEFUINT DEFULNGINT DEFUSHORT "\<option\s+\(BASE\|BYVAL\|DYNAMIC\|ESCAPE\|EXPLICIT\|NOKEYWORD\)\>" "\<option\s+\(PRIVATE\|STATIC\)\>" start="\son\s+" skip=".*" end="gosub" start="\son\s+" skip=".*" end="goto" "\<select\s+case\>" if iif then case else elseif with "\<open\s+\(CONS\|ERR\|PIPE\|SCRN\)\>" BEEP CLS CSRLIN LOCATE PRINT POS SPC TAB VIEW WIDTH BYTE AS DIM CONST DOUBLE ENUM INTEGER LONG LONGINT SHARED SHORT STRING SINGLE TYPE UBYTE UINTEGER ULONGINT UNION UNSIGNED USHORT WSTRING ZSTRING DATE DATEADD DATEDIFF DATEPART DATESERIAL DATEVALUE DAY HOUR MINUTE MONTH MONTHNAME NOW SECOND SETDATE SETTIME TIME TIMESERIAL TIMEVALUE TIMER YEAR WEEKDAY WEEKDAYNAME ASSERT STOP ERR ERL ERROR LOCAL RESUME "\<resume\s+next\>" "\<on\s+error\>" "\<get\s+#\>" "\<input\s+#\>" "\<line\s+input\s+#\>" "\<put\s+#\>" ACCESS APPEND BINARY BLOAD BSAVE CLOSE EOF FREEFILE INPUT LOC LOCK LOF OPEN OUTPUT RANDOM RESET SEEK UNLOCK WRITE ALIAS ANY BYREF BYVAL CALL CDECL CONSTRUCTOR DESTRUCTOR DECLARE FUNCTION LIB OVERLOAD PASCAL STATIC SUB STDCALL VA_ARG VA_FIRST VA_NEXT "\<palette\s+get\>" ALPHA CIRCLE CLS COLOR CUSTOM DRAW FLIP GET IMAGECREATE IMAGEDESTROY LINE PAINT PALETTE PCOPY PMAP POINT PRESET PSET PUT RGB RGBA SCREEN SCREENCOPY SCREENINFO SCREENLIST SCREENLOCK SCREENPTR SCREENRES SCREENSET SCREENSYNC SCREENUNLOCK TRANS USING VIEW WINDOW "\<open\s+com\>" INP OUT WAIT LPT LPOS LPRINT AND EQV IMP OR NOT XOR ABS ACOS ASIN ATAN2 ATN COS EXP FIX INT LOG MOD RANDOMIZE RND SGN SIN SQR TAN ALLOCATE CALLOCATE CLEAR DEALLOCATE FIELD FRE PEEK POKE REALLOCATE ASM DATA LET TO READ RESTORE SIZEOF SWAP OFFSETOF CHAIN COMMON EXPORT EXTERN DYLIBFREE DYLIBLOAD DYLIBSYMBOL PRIVATE PUBLIC MUTEXCREATE MUTEXDESTROY MUTEXLOCK MUTEXUNLOCK THREADCREATE THREADWAIT CHDIR DIR COMMAND ENVIRON EXEC EXEPATH KILL NAME MKDIR RMDIR RUN SHELL SYSTEM WINDOWTITLE POINTERS FOR LOOP WHILE WEND DO CONTINUE STEP UNTIL next "\<#\s*\(inclib\|include\)\>" "\<\$\s*include\>" PROCPTR PTR SADD STRPTR VARPTR __DATE__ __FB_DOS__ __FB_LINUX__ __FB_MAIN__ __FB_MIN_VERSION__ __FB_SIGNATURE__ __FB_VERSION__ __FB_WIN32__ __FB_VER_MAJOR__ __FB_VER_MINOR__ __FB_VER_PATCH__ __FILE__ __FUNCTION__ __LINE__ __TIME__ "\<^#\s*\(define\|undef\)\>" "\<^#\s*\(ifdef\|ifndef\|else\|elseif\|endif\|if\)\>" "\<#\s*error\>"
syn match syn keyword syn keyword syn keyword syn keyword syn keyword syn keyword syn keyword syn keyword syn match syn match syn syn syn syn syn syn match match match match keyword keyword
syn keyword syn keyword syn keyword syn syn syn syn syn syn match keyword keyword keyword keyword keyword
syn match syn keyword syn keyword syn keyword syn keyword syn keyword syn keyword syn keyword syn keyword syn keyword syn keyword syn keyword syn keyword syn match syn match syn keyword syn syn syn syn keyword keyword keyword keyword
1 de 3
13/03/1994 16:52
http://ftp.twaren.net/vim/runtime/syntax/freebasic.vim
syn match syn keyword syn keyword syn keyword syn syn syn syn keyword keyword keyword keyword
freebasicPreProcessor freebasicPreProcessor freebasicProgramFlow freebasicProgramFlow freebasicString freebasicString freebasicString freebasicString freebasicTypeCasting freebasicTypeCasting
"\<#\s*\(print\|dynamic\|static\)\>" DEFINED ONCE END EXIT GOSUB GOTO IS RETURN SCOPE SLEEP INSTR LCASE LEFT LEN LSET LTRIM MID RIGHT RSET RTRIM SPACE STRING TRIM UCASE ASC BIN CHR CVD CVI CVL CVLONGINT CVS CVSHORT FORMAT HEX MKD MKI MKL MKLONGINT MKS MKSHORT OCT STR VAL VALLNG VALINT VALUINT VALULNG CAST CBYTE CDBL CINT CLNG CLNGINT CPTR CSHORT CSIGN CSNG CUBYTE CUINT CULNGINT CUNSG CURDIR CUSHORT
syn match freebasicUserInput "\<line\s+input\>" syn keyword freebasicUserInput GETJOYSTICK GETKEY GETMOUSE INKEY INPUT MULTIKEY SETMOUSE " " Do the Basic variables names first. This is because it " is the most inclusive of the tests. Later on we change " this so the identifiers are split up into the various " types of identifiers like functions, basic commands and " such. MEM 9/9/2006 " syn match freebasicIdentifier "\<[a-zA-Z_][a-zA-Z0-9_]*\>" syn match freebasicGenericFunction "\<[a-zA-Z_][a-zA-Z0-9_]*\>\s*("me=e-1,he=e-1 " " Function list " syn keyword freebasicTodo contained TODO " " Catch errors caused by wrong parenthesis " syn region freebasicParen transparent start='(' end=')' contains=ALLBUT,@freebasicParenGroup syn match freebasicParenError ")" syn match freebasicInParen contained "[{}]" syn cluster freebasicParenGroup contains=freebasicParenError,freebasicSpecial,freebasicTodo,freebasicUserCont,freebasicUserLabel,freebasicBitField " " Integer number, or floating point number without a dot and with "f". " syn region freebasicHex start="&h" end="\W" syn region freebasicHexError start="&h\x*[g-zG-Z]" end="\W" syn match freebasicInteger "\<\d\+\(u\=l\=\|lu\|f\)\>" " " Floating point number, with dot, optional exponent " syn match freebasicFloat "\<\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=\>" " " Floating point number, starting with a dot, optional exponent " syn match freebasicFloat "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>" " " Floating point number, without dot, with exponent " syn match freebasicFloat "\<\d\+e[-+]\=\d\+[fl]\=\>" " " Hex number " syn case match syn match freebasicOctal "\<0\o*\>" syn match freebasicOctalError "\<0\o*[89]" " " String and Character contstants " syn region freebasicString start='"' end='"' contains=freebasicSpecial,freebasicTodo syn region freebasicString start="'" end="'" contains=freebasicSpecial,freebasicTodo " " Comments " syn match freebasicSpecial contained "\\." syn region freebasicComment start="^rem" end="$" contains=freebasicSpecial,freebasicTodo syn region freebasicComment start=":\s*rem" end="$" contains=freebasicSpecial,freebasicTodo syn region freebasicComment start="\s*'" end="$" contains=freebasicSpecial,freebasicTodo syn region freebasicComment start="^'" end="$" contains=freebasicSpecial,freebasicTodo " " Now do the comments and labels " syn match freebasicLabel "^\d" syn match freebasicLabel "\<^\w+:\>" syn region freebasicLineNumber start="^\d" end="\s" " " Create the clusters " syn cluster freebasicNumber contains=freebasicHex,freebasicOctal,freebasicInteger,freebasicFloat syn cluster freebasicError contains=freebasicHexError,freebasicOctalError " " Used with OPEN statement " syn match freebasicFilenumber "#\d\+" syn match freebasicMathOperator "[\+\-\=\|\*\/\>\<\%\()[\]]" contains=freebasicParen " " The default methods for highlighting. Can be overridden later " hi def link freebasicArrays StorageClass hi def link freebasicBitManipulation Operator hi def link freebasicCompilerSwitches PreCondit hi def link freebasicConsole Special hi def link freebasicDataTypes Type hi def link freebasicDateTime Type hi def link freebasicDebug Special hi def link freebasicErrorHandling Special hi def link freebasicFiles Special hi def link freebasicFunctions Function hi def link freebasicGraphics Function hi def link freebasicHardware Special hi def link freebasicLogical Conditional hi def link freebasicMath Function hi def link freebasicMemory Function hi def link freebasicMisc Special hi def link freebasicModularizing Special hi def link freebasicMultithreading Special hi def link freebasicShell Special hi def link freebasicEnviron Special hi def link freebasicPointer Special hi def link freebasicPredefined PreProc hi def link freebasicPreProcessor PreProc hi def link freebasicProgramFlow Statement hi def link freebasicString String
2 de 3
13/03/1994 16:52
http://ftp.twaren.net/vim/runtime/syntax/freebasic.vim
hi hi hi hi hi hi hi hi hi hi hi hi hi hi
def def def def def def def def def def def def def def
link link link link link link link link link link link link link link
freebasicTypeCasting freebasicUserInput freebasicComment freebasicConditional freebasicError freebasicIdentifier freebasicInclude freebasicGenericFunction freebasicLabel freebasicLineNumber freebasicMathOperator freebasicNumber freebasicSpecial freebasicTodo
Type Statement Comment Conditional Error Identifier Include Function Label Label Operator Number Special Todo
3 de 3
13/03/1994 16:52