This file is indexed.

/usr/share/emacs/site-lisp/nescc/old-nesc.el is in nescc 1.3.5-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
;;; necs.el --- nesC mode

;; Copyright (C) 1985-2002 by Free Software Foundation, Inc.
;; Copyright (C) 2004 Intel Corporation

;; Author: Dennis Haney <davh@diku.dk>
;;         David Gay <dgay@intel-research.net>
;; Maintainer: David Gay <dgay@intel-research.net>
;; Keywords: c, languages

;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License Version 2
;; as published by the Free Software Foundation.

;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to
;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.

;;; Commentary:

;;

;;; Code:

(require 'cc-mode)

(if (not (string-match "^5.2[0-9]" c-version))
    (error "cc-mode 5.30 and later not supported by this file"))

(require 'font-lock)

(defconst nesc-keywords
  (eval-when-compile
    (regexp-opt
     '("abstract" "as" "atomic" "async"
       "call" "command" "components" "configuration" 
       "event" "implementation" "interface" "includes" 
       "module" "norace" "nx_struct" "nx_union" "post" "provides"
       "signal" "task" "uses" ) t)))

(setq nesc-font-lock-keywords-1
      (list
       `(eval .
	      (cons (concat "\\<" (,@ nesc-keywords) "\\>") 'font-lock-keyword-face))))

(defconst nesc-font-lock-keywords
  (append nesc-font-lock-keywords-1
   c++-font-lock-keywords-2))

(defvar nesc-mode-abbrev-table nil
  "Abbreviation table used in nesc-mode buffers.")
(define-abbrev-table 'nesc-mode-abbrev-table
  '(("else" "else" c-electric-continued-statement 0)
    ("while" "while" c-electric-continued-statement 0)))

(defvar nesc-mode-map ()
  "Keymap used in nesc-mode buffers.")
(if nesc-mode-map
    nil
  (setq nesc-mode-map (c-make-inherited-keymap))
  ;; add bindings which are only useful for nesC
  )

(easy-menu-define c-nesc-menu nesc-mode-map "nesC Mode Commands"
		  (c-mode-menu "nesC"))

(defvar nesc-mode-syntax-table nil
  "Syntax table used in nesc-mode buffers.")
(if nesc-mode-syntax-table
    ()
  (setq nesc-mode-syntax-table (make-syntax-table))
  (c-populate-syntax-table nesc-mode-syntax-table))

(defconst c-nesC-comment-start-regexp c-C++-comment-start-regexp)
(defconst c-nesC-class-kwds "nx_struct\\|nx_union\\|struct\\|union\\|implementation")
(defconst c-nesC-class-key (c-paren-re c-nesC-class-kwds))

(defvar cc-imenu-nesc-generic-expression
  cc-imenu-c-generic-expression
  "Imenu generic expression for nesC mode.  See `imenu-generic-expression'.")

(defun nesc-mode ()
  "Major mode for editing nesC code."
  (interactive)
  (c-initialize-cc-mode)
  (kill-all-local-variables)
  (set-syntax-table nesc-mode-syntax-table)
  (setq major-mode 'nesc-mode
 	mode-name "nesC"
	local-abbrev-table nesc-mode-abbrev-table
	abbrev-mode t
	; we have javadoc-style comments
	c-append-paragraph-start c-Java-javadoc-paragraph-start)
  (use-local-map nesc-mode-map)
  (c-common-init)
  (setq comment-start "// "
 	comment-end   ""
        c-keywords (c-identifier-re (concat c-C-keywords "\\|" nesc-keywords))
 	c-conditional-key c-C-conditional-key
 	c-comment-start-regexp c-nesC-comment-start-regexp
  	c-class-key c-nesC-class-key
	c-method-key nil
 	c-baseclass-key nil
	c-recognize-knr-p nil
	c-inexpr-class-key nil
	;defun-prompt-regexp c-nesC-defun-prompt-regexp
	)
  (cc-imenu-init cc-imenu-nesc-generic-expression)
  (make-local-variable 'font-lock-defaults)
  (setq font-lock-defaults 
        '(nesc-font-lock-keywords nil t))
  (run-hooks 'c-mode-common-hook)
  (run-hooks 'nesc-mode-hook)
  (c-update-modeline))

(provide 'nesc-mode)

;;; necs.el ends here