all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Roehler <andreas.roehler@online.de>
To: dino chiesa <dpchiesa@hotmail.com>
Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org
Subject: Re: cc-mode help - how to support literal strings in C# syntax?
Date: Fri, 01 Jan 2010 17:04:59 +0100	[thread overview]
Message-ID: <4B3E1D2B.2020202@online.de> (raw)
In-Reply-To: <COL124-W52C69E8810C2D0EAC1263BCE790@phx.gbl>

Hi again,

with little experimental form below
`@-prefixed-csharp-string' is detected.  See screenshot
attached.

It's core is built upon thingatpt-utils-base.el from
https://code.launchpad.net/s-x-emacs-werkstatt/

Reporting borders and all kind of at-point-functions
will be available likewise - it's just to put new form
`@-Prefixed-csharp-string' into a template.

If that kind of functions being useful, needed
functions from thingatpt-utils-base.el might be
extracted into a standalone app.

Andreas

;;;;;;;;

(require 'thingatpt-utils-base)

;; @-Prefixed-csharp-string

(put '@-prefixed-csharp-string 'beginning-op-at
     (lambda ()
         (beginning-of-form-base "@\"" "[^@]\"" nil 1)))

(put '@-prefixed-csharp-string 'end-op-at
     (lambda ()
       (when (looking-at "@\"")
           (end-of-form-base "@\"" "[^@]\"" nil 1))))


(defun @-prefixed-csharp-string (&optional arg)
  "Returns @-prefixed-csharp-string at point if any, nil otherwise. "
  (interactive "P")
  (th '@-prefixed-csharp-string arg (interactive-p)))

;;;;;;;





  parent reply	other threads:[~2010-01-01 16:04 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-29  1:51 cc-mode help - how to support literal strings in C# syntax? dino chiesa
2009-12-29 10:43 ` Andreas Roehler
2009-12-30  4:40   ` dino chiesa
2010-01-01 11:43     ` Andreas Roehler
2010-01-01 16:04     ` Andreas Roehler [this message]
2009-12-30  5:01   ` first-class support for csharp in cc-mode.el dino chiesa
2009-12-30  6:17     ` Miles Bader
2009-12-30  7:18       ` dino chiesa
2009-12-30 11:09         ` Miles Bader
2009-12-30 15:00           ` dino chiesa
2009-12-30 15:19     ` Alan Mackenzie
2009-12-30 15:39       ` Stefan Monnier
2009-12-30 16:29         ` dino chiesa
2009-12-30 16:57           ` Stefan Monnier
2009-12-30 21:01           ` Alan Mackenzie
2009-12-30 21:03             ` dino chiesa
2009-12-31  2:44               ` Miles Bader
2009-12-31  2:58                 ` Jason Rumney
2009-12-31  3:08                 ` Deniz Dogan
2009-12-31  3:18                   ` dino chiesa
2009-12-31  3:13                 ` dino chiesa
2009-12-31 11:43           ` Vagn Johansen
2009-12-30 20:19         ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B3E1D2B.2020202@online.de \
    --to=andreas.roehler@online.de \
    --cc=bug-cc-mode@gnu.org \
    --cc=dpchiesa@hotmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.