Giter Site home page Giter Site logo

gtk-vim-syntax's Introduction

A collection of C extension Vim syntax files for
- xlib
- glib (gobject, gio)
- gdk-pixbuf
- gtk2 (gdk2)
- gtk3 (gdk3)
- atk
- at-spi2
- cairo
- clutter
- dbus-glib
- evince
- fftw3
- gimp
- gnome-desktop
- gstreamer
- gtkglext
- gtksourceview
- gudev
- gusb
- json-glib
- libglade
- libgsf
- libnotify
- librsvg
- libunique
- libwnck
- pango
- poppler
- vte

The latest version is available
- at vim.org: http://www.vim.org/scripts/script.php?script_id=1000
- at my pages: http://physics.muni.cz/~yeti/vim/

They are extensions of the standard C syntax highlighting to additional
types, functions, macros, and constants, they are not meant to replace it.
So you should include them in your ~/.vim/after/syntax/c.vim file (see
:h runtimepath for more).  An example is provided as c.vim.example.

The xlib.vim file comes from older Gtk+ syntax higlighting files by Hwanjin
Choe (see http://www.vim.org/scripts/script.php?script_id=570).  File
fftw3.vim was created manually.

The others were generated with vim-syn-gen.py script by David Nečas (Yeti)
(see http://physics.muni.cz/~yeti/vim/).

They all allow special handling of deprecated symbols.  By default,
deprecated symbols are not highlighted.  By setting (e.g.)

  :let glib_enable_deprecated = 1

in your vimrc you can enable highlighting of deprecated declarations in glib
as normal symbols.  By setting

  :let glib_deprecated_errors = 1

you can enable highlighting deprecated glib symbols as Error.

The exact library version from which each syntax file was generated is
included in its metadata.

Copying:  I hereby waive any potential rights on the syntax files.  I am not
sure whether a list of library symbols can be copyrighted at all.  But this
world is full of lawyers with the silliest ideas.  The ideal state (which
would solve all copyright problems once for all) would be distribution of the
syntax files directly with the respective libraries, but I do not hope for
that.

Contact:  [email protected]

Happy Vimming!

gtk-vim-syntax's People

Contributors

sjb avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.