Browse thread
GtkSourceView2.0 syntax highlighting
-
Edgar Friendly
- Richard Jones
-
Robert Roessler
- Edgar Friendly
- skaller
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Edgar Friendly <thelema314@g...> |
| Subject: | Re: [Caml-list] GtkSourceView2.0 syntax highlighting |
Robert Roessler wrote: > Edgar Friendly wrote: >> The upcoming version of GtkSourceView, the library used by many Gnome >> text editors for syntax highlighting, supports new and more powerful >> language parsing. I volunteer to update the language definition for >> Ocaml, and would like some feedback from the community regarding useful >> things to highlight. > > A "gotcha" to be aware of (if you aren't already handling this): don't > forget that OCaml comments nest. ;) > Yup, that's being handled. Another fun gotcha I found is that comments aren't comments inside string literals. > Also, from my OCaml lexer in the Scintilla distribution: > > # suggested; more could come from, say, Pervasives > keywordoptional1.caml= \ > option Some None ignore ref lnot succ pred > > # suggested; more could come from, say, user-defined types > keywordoptional2.caml= \ > array bool char float int list string unit > wow, this is going to be a lot of keyword highlighting. people might run out of colors on their screen. > The full set (including default coloring values) may be found in the > caml.properties file in a Scintilla source tree. > > Robert Roessler > roessler@rftp.com > http://www.rftp.com > Thanks for the feedback, E.