]> Cypherpunks repositories - gostls13.git/commit
go-mode.el: fix syntax highlighting of backticks
authorFlorian Weimer <fw@deneb.enyo.de>
Mon, 9 Jan 2012 17:58:29 +0000 (12:58 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 9 Jan 2012 17:58:29 +0000 (12:58 -0500)
commit70ed0ac5889000fb712dac16e9dea8ef2fa4030f
tree23213597d13f32630d4ce154a2d5c59cfa9aeeb1
parent8a4bd094a033ceb00f7f5a504e4bc652ea5a164d
go-mode.el: fix syntax highlighting of backticks

Instead of syntax-tables, an extended go-mode-cs is used for
from a font-lock callback.

Cache invalidation must happen in a before-change-function
because font-lock runs in an after-change-function, potentially
before the cache invalidation takes place.

Performance is reasonable, even with src/pkg/html/entity.go
and test/fixedbugs/bug257.go.

Fixes #2330.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5529045
misc/emacs/go-mode.el