I have some problem with the syntax highlighting in LISP. I'm from Sweden, and in our alphabetic we got the letters a-z, but also the letters å, ä and ö, and there seems to be a little problem with those in the LISP highlighting.
These are the words that are highlighted in LISP (by default):
cddaar cddadr cdddar cddddr cons list append reverse last nth nthcdr member assoc subst sublis nsubst nsublis remove length list length mapc mapcar mapl maplist mapcan mapcon rplaca rplacd nconc delete atom symbolp numberp boundp null listp consp minusp zerop plusp evenp oddp eq eql equal cond case and or let l if prog prog1 prog2 progn go return do dolist dotimes catch throw error cerror break continue errset baktrace evalhook truncate float rem min max abs sin cos tan expt exp sqrt random logand logior logxor lognot bignums logeqv lognand lognor logorc2 logtest logbitp logcount integer length nil
As you can see, the letter l is one of these word, and if you combines that with å, ä or ö, there is a problem.
Example:
Here is a function that highlights correct:
_______________
(defun add-digit-last (digit number)
(+ (* number 10) digit)
)
_______________
With the code above, the word "defun" and the symbols "+", "*", "(" and ")" is highlighted, as it should be. But if I translate my function name and variables to Swedish, I get this code:
_______________
(defun lägg-till-siffra-sist (siffra tal)
(+ (* tal 10) siffra)
)
_______________
And here is a problem (with the letter "ä"). Just as with the code written in English, the word "defun" and the symbols "+", "*", "(" and ")" is highlighted, but the letter "l", directly after "defun ", is also highlighted (because of the letter "ä" stands direct after it).
I don't know how the syntax highlighting is build, but can I somehow configured it to work as I want it to work?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can tweak SciLexer.dll for you and send it over. I need an email address, and also what is the OEM codepage for swede, as I know nearly nothing about the language. Email quasar850 at rediffmail dot com directly, SF doesn't like my email :(
CChris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is not diectly configurable. The rules are (somehow) in ?\scintilla\src\LexLisp.cxx You can bend them, and then recompile SciLexer.dll . Perhaps ask the Scintilla project if they plan to support 8-but ASCII in identifiers - guess it is not standard.
CChris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, since I don't know anything about C++ I probably can't do anything about it, which is a bit unfortunate since I'm supposed to write out the code on paper and hand it in to my teacher (who insist on using Swedish name on functions and variables). I guess I have to find another program who can do the printing work for me.
Tanks for your answer, CChris!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I have some problem with the syntax highlighting in LISP. I'm from Sweden, and in our alphabetic we got the letters a-z, but also the letters å, ä and ö, and there seems to be a little problem with those in the LISP highlighting.
These are the words that are highlighted in LISP (by default):
cddaar cddadr cdddar cddddr cons list append reverse last nth nthcdr member assoc subst sublis nsubst nsublis remove length list length mapc mapcar mapl maplist mapcan mapcon rplaca rplacd nconc delete atom symbolp numberp boundp null listp consp minusp zerop plusp evenp oddp eq eql equal cond case and or let l if prog prog1 prog2 progn go return do dolist dotimes catch throw error cerror break continue errset baktrace evalhook truncate float rem min max abs sin cos tan expt exp sqrt random logand logior logxor lognot bignums logeqv lognand lognor logorc2 logtest logbitp logcount integer length nil
As you can see, the letter l is one of these word, and if you combines that with å, ä or ö, there is a problem.
Example:
Here is a function that highlights correct:
_______________
(defun add-digit-last (digit number)
(+ (* number 10) digit)
)
_______________
With the code above, the word "defun" and the symbols "+", "*", "(" and ")" is highlighted, as it should be. But if I translate my function name and variables to Swedish, I get this code:
_______________
(defun lägg-till-siffra-sist (siffra tal)
(+ (* tal 10) siffra)
)
_______________
And here is a problem (with the letter "ä"). Just as with the code written in English, the word "defun" and the symbols "+", "*", "(" and ")" is highlighted, but the letter "l", directly after "defun ", is also highlighted (because of the letter "ä" stands direct after it).
I don't know how the syntax highlighting is build, but can I somehow configured it to work as I want it to work?
I can tweak SciLexer.dll for you and send it over. I need an email address, and also what is the OEM codepage for swede, as I know nearly nothing about the language. Email quasar850 at rediffmail dot com directly, SF doesn't like my email :(
CChris
It is not diectly configurable. The rules are (somehow) in ?\scintilla\src\LexLisp.cxx You can bend them, and then recompile SciLexer.dll . Perhaps ask the Scintilla project if they plan to support 8-but ASCII in identifiers - guess it is not standard.
CChris
Ok, since I don't know anything about C++ I probably can't do anything about it, which is a bit unfortunate since I'm supposed to write out the code on paper and hand it in to my teacher (who insist on using Swedish name on functions and variables). I guess I have to find another program who can do the printing work for me.
Tanks for your answer, CChris!