PageRenderTime 54ms CodeModel.GetById 30ms RepoModel.GetById 1ms app.codeStats 0ms

/syntax/clibs/xlib.vim

https://github.com/vim-scripts/clibs.vim
Vim Script | 49 lines | 28 code | 2 blank | 19 comment | 2 complexity | 2b45974d7719bda6f166d4a958ed9f84 MD5 | raw file
  1. " clibs/xlib.vim: Syntax file to match identifiers from Xlib
  2. " Created: Thu 25 May 2006 06:27:55 PM CDT
  3. " Modified: Thu 22 Feb 2007 01:10:28 AM PST
  4. " Author: Gautam Iyer <gi1242@users.sourceforge.net>
  5. "
  6. " DESCRIPTION
  7. "
  8. " Matches the standard functions defined by xlib. This file is meant to be
  9. " included from whatever file wants to match these items (the including file
  10. " must provide the cLibIdentifiers syntax cluster).
  11. "
  12. " No need to provide load control using b:current_syntax, as this file is only
  13. " meant to be included from the C syntax file. However if "c_hi_identifiers"
  14. " is not defined, we define no syntax items so we exit right away and define
  15. " no syntax items.
  16. if !exists( 'c_hi_identifiers' )
  17. finish
  18. endif
  19. " Standard X library functions (no extensions)
  20. if c_hi_identifiers =~ '\v\C<(all|functions)>'
  21. " {{{ Xlib functions [generated from /usr/include/X11/Xlib.h]
  22. syn keyword cLibFunction contained XActivateScreenSaver XAddConnectionWatch XAddExtension XAddHost XAddHosts XAddToExtensionList XAddToSaveSet XAllPlanes XAllocColor XAllocColorCells XAllocColorPlanes XAllocNamedColor XAllowEvents XAutoRepeatOff XAutoRepeatOn
  23. syn keyword cLibFunction contained XBaseFontNameListOfFontSet XBell XBitmapBitOrder XBitmapPad XBitmapUnit XBlackPixel XBlackPixelOfScreen
  24. syn keyword cLibFunction contained XCellsOfScreen XChangeActivePointerGrab XChangeGC XChangeKeyboardControl XChangeKeyboardMapping XChangePointerControl XChangeProperty XChangeSaveSet XChangeWindowAttributes XCheckIfEvent XCheckMaskEvent XCheckTypedEvent XCheckTypedWindowEvent XCheckWindowEvent XCirculateSubwindows XCirculateSubwindowsDown XCirculateSubwindowsUp XClearArea XClearWindow XCloseDisplay XCloseIM XCloseOM XConfigureWindow XConnectionNumber XContextDependentDrawing XContextualDrawing XConvertSelection XCopyArea XCopyColormapAndFree XCopyGC XCopyPlane XCreateBitmapFromData XCreateColormap XCreateFontCursor XCreateFontSet XCreateGC XCreateGlyphCursor XCreateIC XCreateImage XCreateOC XCreatePixmap XCreatePixmapCursor XCreatePixmapFromBitmapData XCreateSimpleWindow XCreateWindow
  25. syn keyword cLibFunction contained XDefaultColormap XDefaultColormapOfScreen XDefaultDepth XDefaultDepthOfScreen XDefaultGC XDefaultGCOfScreen XDefaultRootWindow XDefaultScreen XDefaultScreenOfDisplay XDefaultVisual XDefaultVisualOfScreen XDefineCursor XDeleteModifiermapEntry XDeleteProperty XDestroyIC XDestroyOC XDestroySubwindows XDestroyWindow XDirectionalDependentDrawing XDisableAccessControl XDisplayCells XDisplayHeight XDisplayHeightMM XDisplayKeycodes XDisplayMotionBufferSize XDisplayName XDisplayOfIM XDisplayOfOM XDisplayOfScreen XDisplayPlanes XDisplayString XDisplayWidth XDisplayWidthMM XDoesBackingStore XDoesSaveUnders XDrawArc XDrawArcs XDrawImageString XDrawImageString16 XDrawLine XDrawLines XDrawPoint XDrawPoints XDrawRectangle XDrawRectangles XDrawSegments XDrawString XDrawString16 XDrawText XDrawText16
  26. syn keyword cLibFunction contained XEHeadOfExtensionList XEnableAccessControl XEventMaskOfScreen XEventsQueued XExtendedMaxRequestSize XExtentsOfFontSet
  27. syn keyword cLibFunction contained XFetchBuffer XFetchBytes XFetchName XFillArc XFillArcs XFillPolygon XFillRectangle XFillRectangles XFilterEvent XFindOnExtensionList XFlush XFlushGC XFontsOfFontSet XForceScreenSaver XFree XFreeColormap XFreeColors XFreeCursor XFreeExtensionList XFreeFont XFreeFontInfo XFreeFontNames XFreeFontPath XFreeFontSet XFreeGC XFreeModifiermap XFreePixmap XFreeStringList
  28. syn keyword cLibFunction contained XGContextFromGC XGeometry XGetAtomName XGetAtomNames XGetCommand XGetDefault XGetErrorDatabaseText XGetErrorText XGetFontPath XGetFontProperty XGetGCValues XGetGeometry XGetICValues XGetIMValues XGetIconName XGetImage XGetInputFocus XGetKeyboardControl XGetKeyboardMapping XGetModifierMapping XGetMotionEvents XGetOCValues XGetOMValues XGetPointerControl XGetPointerMapping XGetScreenSaver XGetSelectionOwner XGetSubImage XGetTransientForHint XGetWMColormapWindows XGetWMProtocols XGetWindowAttributes XGetWindowProperty XGrabButton XGrabKey XGrabKeyboard XGrabPointer XGrabServer
  29. syn keyword cLibFunction contained XHeightMMOfScreen XHeightOfScreen
  30. syn keyword cLibFunction contained XIMOfIC XIconifyWindow XIfEvent XImageByteOrder XInitExtension XInitImage XInitThreads XInsertModifiermapEntry XInstallColormap XInternAtom XInternAtoms XInternalConnectionNumbers
  31. syn keyword cLibFunction contained XKeycodeToKeysym XKeysymToKeycode XKeysymToString XKillClient
  32. syn keyword cLibFunction contained XLastKnownRequestProcessed XListDepths XListExtensions XListFonts XListFontsWithInfo XListHosts XListInstalledColormaps XListPixmapFormats XListProperties XLoadFont XLoadQueryFont XLocaleOfFontSet XLocaleOfIM XLocaleOfOM XLockDisplay XLookupColor XLookupKeysym XLowerWindow
  33. syn keyword cLibFunction contained XMapRaised XMapSubwindows XMapWindow XMaskEvent XMaxCmapsOfScreen XMaxRequestSize XMinCmapsOfScreen XMoveResizeWindow XMoveWindow
  34. syn keyword cLibFunction contained XNewModifiermap XNextEvent XNextRequest XNoOp
  35. syn keyword cLibFunction contained XOMOfOC XOpenDisplay XOpenIM XOpenOM
  36. syn keyword cLibFunction contained XParseColor XParseGeometry XPeekEvent XPeekIfEvent XPending XPlanesOfScreen XProcessInternalConnection XProtocolRevision XProtocolVersion XPutBackEvent XPutImage
  37. syn keyword cLibFunction contained XQLength XQueryBestCursor XQueryBestSize XQueryBestStipple XQueryBestTile XQueryColor XQueryColors XQueryExtension XQueryFont XQueryKeymap XQueryPointer XQueryTextExtents XQueryTextExtents16 XQueryTree
  38. syn keyword cLibFunction contained XRaiseWindow XReadBitmapFile XReadBitmapFileData XRebindKeysym XRecolorCursor XReconfigureWMWindow XRefreshKeyboardMapping XRegisterIMInstantiateCallback XRemoveConnectionWatch XRemoveFromSaveSet XRemoveHost XRemoveHosts XReparentWindow XResetScreenSaver XResizeWindow XResourceManagerString XRestackWindows XRootWindow XRootWindowOfScreen XRotateBuffers XRotateWindowProperties
  39. syn keyword cLibFunction contained XScreenCount XScreenNumberOfScreen XScreenOfDisplay XScreenResourceString XSelectInput XSendEvent XServerVendor XSetAccessControl XSetAfterFunction XSetArcMode XSetAuthorization XSetBackground XSetClipMask XSetClipOrigin XSetClipRectangles XSetCloseDownMode XSetCommand XSetDashes XSetErrorHandler XSetFillRule XSetFillStyle XSetFont XSetFontPath XSetForeground XSetFunction XSetGraphicsExposures XSetICFocus XSetICValues XSetIMValues XSetIOErrorHandler XSetIconName XSetInputFocus XSetLineAttributes XSetLocaleModifiers XSetModifierMapping XSetOCValues XSetOMValues XSetPlaneMask XSetPointerMapping XSetScreenSaver XSetSelectionOwner XSetState XSetStipple XSetSubwindowMode XSetTSOrigin XSetTile XSetTransientForHint XSetWMColormapWindows XSetWMProtocols XSetWindowBackground XSetWindowBackgroundPixmap XSetWindowBorder XSetWindowBorderPixmap XSetWindowBorderWidth XSetWindowColormap XStoreBuffer XStoreBytes XStoreColor XStoreColors XStoreName XStoreNamedColor XStringToKeysym XSupportsLocale XSync XSynchronize
  40. syn keyword cLibFunction contained XTextExtents XTextExtents16 XTextWidth XTextWidth16 XTranslateCoordinates
  41. syn keyword cLibFunction contained XUndefineCursor XUngrabButton XUngrabKey XUngrabKeyboard XUngrabPointer XUngrabServer XUninstallColormap XUnloadFont XUnlockDisplay XUnmapSubwindows XUnmapWindow XUnregisterIMInstantiateCallback XUnsetICFocus
  42. syn keyword cLibFunction contained XVaCreateNestedList XVendorRelease XVisualIDFromVisual
  43. syn keyword cLibFunction contained XWarpPointer XWhitePixel XWhitePixelOfScreen XWidthMMOfScreen XWidthOfScreen XWindowEvent XWithdrawWindow XWriteBitmapFile
  44. syn keyword cLibFunction contained XmbDrawImageString XmbDrawString XmbDrawText XmbLookupString XmbResetIC XmbTextEscapement XmbTextExtents XmbTextPerCharExtents XrmInitialize Xutf8DrawImageString Xutf8DrawString Xutf8DrawText Xutf8LookupString Xutf8ResetIC Xutf8TextEscapement Xutf8TextExtents Xutf8TextPerCharExtents XwcDrawImageString XwcDrawString XwcDrawText XwcLookupString XwcResetIC XwcTextEscapement XwcTextExtents XwcTextPerCharExtents _Xmblen _Xmbtowc _Xwctomb
  45. " }}}
  46. endif
  47. " TODO: Match xlib constants. Is there a good list somewhere?