aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-11-17 03:21:17 +0000
committernyamatongwe <devnull@localhost>2002-11-17 03:21:17 +0000
commita77e6114d5f88b32e2abb8f3bcb58e583b0a4fe0 (patch)
treef8016351fc37db822f86bdb13158ac648d4a1954 /include
parentf3c7458a480cd229e7273da85291c74f50847ee6 (diff)
downloadscintilla-mirror-a77e6114d5f88b32e2abb8f3bcb58e583b0a4fe0.tar.gz
Jakub Vrána has added a CSS (Cascading Style Sheet) lexer to Scintilla.
This is separate to the HTML lexer and is only invoked for stand-alone CSS files, not for the STYLE section of HTML files. He also made some other additions. There is a Line Duplicate command which is bound to Ctrl+D. PHP lexing has been improved.
Diffstat (limited to 'include')
-rw-r--r--include/SciLexer.h14
-rw-r--r--include/Scintilla.h1
-rw-r--r--include/Scintilla.iface19
3 files changed, 34 insertions, 0 deletions
diff --git a/include/SciLexer.h b/include/SciLexer.h
index f3bd22d8b..ded46b781 100644
--- a/include/SciLexer.h
+++ b/include/SciLexer.h
@@ -52,6 +52,7 @@
#define SCLEX_CPPNOCASE 35
#define SCLEX_FORTRAN 36
#define SCLEX_F77 37
+#define SCLEX_CSS 38
#define SCLEX_AUTOMATIC 1000
#define SCE_P_DEFAULT 0
#define SCE_P_COMMENTLINE 1
@@ -426,6 +427,19 @@
#define SCE_F_OPERATOR2 12
#define SCE_F_LABEL 13
#define SCE_F_CONTINUATION 14
+#define SCE_CSS_DEFAULT 0
+#define SCE_CSS_TAG 1
+#define SCE_CSS_CLASS 2
+#define SCE_CSS_PSEUDOCLASS 3
+#define SCE_CSS_UNKNOWN_PSEUDOCLASS 4
+#define SCE_CSS_OPERATOR 5
+#define SCE_CSS_IDENTIFIER 6
+#define SCE_CSS_UNKNOWN_IDENTIFIER 7
+#define SCE_CSS_VALUE 8
+#define SCE_CSS_COMMENT 9
+#define SCE_CSS_ID 10
+#define SCE_CSS_IMPORTANT 11
+#define SCE_CSS_DIRECTIVE 12
//--Autogenerated -- end of section automatically generated from Scintilla.iface
#endif
diff --git a/include/Scintilla.h b/include/Scintilla.h
index f81646e39..7cc9c6aad 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -432,6 +432,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_LINECUT 2337
#define SCI_LINEDELETE 2338
#define SCI_LINETRANSPOSE 2339
+#define SCI_LINEDUPLICATE 2404
#define SCI_LOWERCASE 2340
#define SCI_UPPERCASE 2341
#define SCI_LINESCROLLDOWN 2342
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index ce6d8ea53..d9f9c14f9 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1138,6 +1138,9 @@ fun void LineDelete=2338(,)
# Switch the current line with the previous.
fun void LineTranspose=2339(,)
+# Duplicate the current line.
+fun void LineDuplicate=2404(,)
+
# Transform the selection to lower case.
fun void LowerCase=2340(,)
@@ -1476,6 +1479,7 @@ val SCLEX_ASM=34
val SCLEX_CPPNOCASE=35
val SCLEX_FORTRAN=36
val SCLEX_F77=37
+val SCLEX_CSS=38
# When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
# value assigned in sequence from SCLEX_AUTOMATIC+1.
@@ -1921,6 +1925,21 @@ val SCE_F_PREPROCESSOR=11
val SCE_F_OPERATOR2=12
val SCE_F_LABEL=13
val SCE_F_CONTINUATION=14
+# Lexical states for SCLEX_CSS
+lex CSS=SCLEX_CSS SCE_CSS_
+val SCE_CSS_DEFAULT=0
+val SCE_CSS_TAG=1
+val SCE_CSS_CLASS=2
+val SCE_CSS_PSEUDOCLASS=3
+val SCE_CSS_UNKNOWN_PSEUDOCLASS=4
+val SCE_CSS_OPERATOR=5
+val SCE_CSS_IDENTIFIER=6
+val SCE_CSS_UNKNOWN_IDENTIFIER=7
+val SCE_CSS_VALUE=8
+val SCE_CSS_COMMENT=9
+val SCE_CSS_ID=10
+val SCE_CSS_IMPORTANT=11
+val SCE_CSS_DIRECTIVE=12
# Events