[anjuta-extras] scintilla: Support ianjuta_editor_cell_get_attribute for python



commit 8bdf742734cde4493d2d7b9be210dcef1cd8e44c
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Mon Aug 17 19:52:55 2009 +0200

    scintilla: Support ianjuta_editor_cell_get_attribute for python

 plugins/scintilla/text_editor.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/plugins/scintilla/text_editor.c b/plugins/scintilla/text_editor.c
index b11a1a7..48e5e9b 100644
--- a/plugins/scintilla/text_editor.c
+++ b/plugins/scintilla/text_editor.c
@@ -793,6 +793,25 @@ text_editor_get_attribute (TextEditor *te, gint position)
 					break;
 			}
 			break;
+		case SCLEX_PYTHON:
+			switch (style)
+			{
+				case SCE_P_CHARACTER:
+				case SCE_P_STRING:
+				case SCE_P_TRIPLE:
+				case SCE_P_TRIPLEDOUBLE:
+					attrib = TEXT_EDITOR_ATTRIB_STRING;
+					break;
+				case SCE_P_COMMENTLINE:
+				case SCE_P_COMMENTBLOCK:
+					attrib = TEXT_EDITOR_ATTRIB_COMMENT;
+					break;
+				case SCE_P_WORD:
+				case SCE_P_WORD2:
+					attrib = TEXT_EDITOR_ATTRIB_KEYWORD;
+					break;
+			}
+			break;
 	}
 	return attrib;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]