]> Cypherpunks repositories - gostls13.git/commit
misc/emacs: handle backslash in raw string in Emacs 23
authorRui Ueyama <ruiu@google.com>
Thu, 27 Mar 2014 19:22:52 +0000 (15:22 -0400)
committerAlan Donovan <adonovan@google.com>
Thu, 27 Mar 2014 19:22:52 +0000 (15:22 -0400)
commit444dd26bf4c585ce71dfcd9e581865ba3047dc75
tree50a64c451e3d496ca818b7e63219ca7eee41bce0
parent5a23a7e52c8b11defb0e7ae88b6a2808432807c0
misc/emacs: handle backslash in raw string in Emacs 23

Go-mode in Emacs 23 does not recognize a backslash followed
by a backquote as end of raw string literal, as it does not
support syntax-propertize-function which Go-mode uses to
remove special meaning from backslashes in ``.

This patch provides a fallback mechanism to do the same thing
using font-lock-syntactic-keywords, which is supported by
Emacs 23.

LGTM=dominik.honnef
R=golang-codereviews, dominik.honnef
CC=adonovan, golang-codereviews
https://golang.org/cl/78730048
misc/emacs/go-mode.el