[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 421d3de 062/459: remove aspx code
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 421d3de 062/459: remove aspx code |
Date: |
Sun, 22 Aug 2021 13:58:56 -0400 (EDT) |
branch: externals/csharp-mode
commit 421d3de3fb7c3bfa5a730c2403e487314ee303b2
Author: jesse_black <jesse.w.black@gmail.com>
Commit: jesse_black <jesse.w.black@gmail.com>
remove aspx code
closes #24
---
csharp-mode.el | 120 +--------------------------------------------------------
1 file changed, 2 insertions(+), 118 deletions(-)
diff --git a/csharp-mode.el b/csharp-mode.el
index b29439a..75e3130 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -344,14 +344,6 @@
;; constants used in this module
;; ==================================================================
- ;;(error (byte-compile-dest-file))
- ;;(error (c-get-current-file))
-
- (defconst csharp-aspnet-directive-re
- "<%@.+?%>"
- "Regex for matching directive blocks in ASP.NET files (.aspx, .ashx,
.ascx)")
-
-
(defconst csharp-enum-decl-re
(concat
"\\<enum[ \t\n\r\f\v]+"
@@ -406,23 +398,17 @@ close-brace) appears. The concept is used to allow proper
indenting of blocks of code: Where a vsemi appears, the following
line will not indent further.
-A vsemi appears in 3 cases in C#:
+A vsemi appears in 2 cases in C#:
- after an attribute that decorates a class, method, field, or
property.
- in an object initializer, before the open-curly?
- - after an ASPNET directive, that appears in a aspx/ashx/ascx file
-
An example of the former is [WebMethod] or [XmlElement].
-An example of the latter is something like this:
-
- <%@ WebHandler Language=\"C#\" Class=\"Handler\" %>
Providing this function allows the indenting in csharp-mode
-to work properly with code that includes attributes and ASPNET
-directives.
+to work properly with code that includes attributes.
"
(save-excursion
@@ -438,11 +424,6 @@ directives.
(looking-at "[ \t\n\f\v\r]*{"))
t)
- ;; put a vsemi after an ASPNET directive, like
- ;; <%@ WebHandler Language="C#" Class="Handler" %>
- ((looking-back (concat csharp-aspnet-directive-re "$") nil t)
- t)
-
;; put a vsemi after an attribute, as with
;; [XmlElement]
;; Except when the attribute is used within a line of code, as
@@ -1231,103 +1212,6 @@ comment at the start of cc-engine.el for more info."
))
nil))
-
- ;; Case 6: directive blocks for .aspx/.ashx/.ascx
- ,`((lambda (limit)
- (let ((parse-sexp-lookup-properties
- (cc-eval-when-compile
- (boundp 'parse-sexp-lookup-properties))))
-
- (while (re-search-forward csharp-aspnet-directive-re limit t)
- (csharp-log 3 "aspnet template? - %d limit(%d)"
(match-beginning 1)
- limit)
-
- (unless
- (progn
- (goto-char (match-beginning 0))
- (c-skip-comments-and-strings limit))
-
- (save-match-data
- (let ((end-open (+ (match-beginning 0) 3))
- (beg-close (- (match-end 0) 2)))
- (c-put-font-lock-face (match-beginning 0)
- end-open
- 'font-lock-preprocessor-face)
-
- (c-put-font-lock-face beg-close
- (match-end 0)
- 'font-lock-preprocessor-face)
-
- ;; fontify within the directive
- (while (re-search-forward
- ,(concat
- "\\("
- (c-lang-const c-symbol-key)
- "\\)"
- "=?"
- )
- beg-close t)
-
- (c-put-font-lock-face (match-beginning 1)
- (match-end 1)
- 'font-lock-keyword-face)
- (c-skip-comments-and-strings beg-close))
- ))
- (goto-char (match-end 0)))))
- nil))
-
-
-;; ;; Case 5: #if
-;; ,@(when t
-;; `((,(byte-compile
-;; `(lambda (limit)
-;; (let ((parse-sexp-lookup-properties
-;; (cc-eval-when-compile
-;; (boundp 'parse-sexp-lookup-properties))))
-;; (while (re-search-forward
-;; "\\<\\(#if\\)[
\t\n\r\f\v]+\\([A-Za-z_][[:alnum:]]*\\)"
-;; limit t)
-;;
-;; (csharp-log 3 "#if directive - %d"
(match-beginning 1))
-;;
-;; (unless
-;; (progn
-;; (goto-char (match-beginning 0))
-;; (c-skip-comments-and-strings limit))
-;;
-;; (save-match-data
-;; (c-put-font-lock-face (match-beginning 2)
-;; (match-end 2)
-;;
'font-lock-variable-name-face)
-;; (goto-char (match-end 0))))))
-;; nil))
-;; )))
-
-
- ;; ,`(,(c-make-font-lock-search-function
- ;; (concat "\\<new"
- ;; "[ \t\n\r\f\v]+"
- ;; "\\(\\(?:"
- ;; (c-lang-const c-symbol-key)
- ;; "\\.\\)*"
- ;; (c-lang-const c-symbol-key)
- ;; "\\)"
- ;; "[ \t\n\r\f\v]*"
- ;; "\\(?:"
- ;; "( *)[ \t\n\r\f\v]*" ;; optional ()
- ;; "\\)?"
- ;; "{")
- ;; '((c-font-lock-declarators limit t nil)
- ;; (save-match-data
- ;; (goto-char (match-end 0))
- ;; (c-put-char-property (1- (point)) 'c-type
- ;; 'c-decl-id-start)
- ;; (c-forward-syntactic-ws))
- ;; (goto-char (match-end 0)))))
-
-
-
-
;; Fontify labels after goto etc.
,@(when (c-lang-const c-before-label-kwds)
`( ;; (Got three different interpretation levels here,
- [elpa] externals/csharp-mode 3af278a 070/459: Parse the base directory from MSBuild to support finding errors in dependency projects., (continued)
- [elpa] externals/csharp-mode 3af278a 070/459: Parse the base directory from MSBuild to support finding errors in dependency projects., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e73ad4e 071/459: Merge pull request #30 from binki/compilation-regexps, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode baef28a 072/459: fix error highlighting and use filename functions, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2303fe0 074/459: Add msbuild and xbuild log-files for ERT-testing., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 69eaa1a 080/459: Add tests for compilation-mode regexps., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7ef0c5c 032/459: Configure travis-build., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2fe1a72 033/459: Fix error in path in makefile., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3d0f86b 043/459: Updated readme., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fff8cb1 053/459: Merge branch 'devel', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 689dd8b 056/459: make c# style the default style, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 421d3de 062/459: remove aspx code,
ELPA Syncer <=
- [elpa] externals/csharp-mode 962478e 057/459: Merge branch 'devel', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2d13a9c 058/459: Add very broad build-level test., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 723341b 067/459: Fix incorrect-code tags in readme., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a86839b 064/459: Merged from master., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0a2a3b0 066/459: Fix Emacs-lockup during fontification., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f2fda33 041/459: Fix errors in `make package`., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a6eb8bd 047/459: Merge changes from branch 'devel', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 6289cfd 051/459: Fix broken byte-compile., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1f2fc21 055/459: Remove obsolete workarounds from README., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d7ba765 063/459: Merge changes from devel., ELPA Syncer, 2021/08/22