|
|
|
12-02-2020, 09:35 AM
|
#1
|
Human being with feelings
Join Date: Mar 2007
Location: Denver, CO
Posts: 633
|
Strange LUA error
this code is giving me an error message. It says 'unexpected symbol near <\194>'
I searched, and that looks like a unicode symbol, maybe?
Code:
KeyboardText = { '1','2','3','4','5','6','7','8','9','0','backspace',
'q','w','e','r','t','y','u','i','o','p','\'',
'a','s','d','f','g','h','j','k','l','-','"',
'z','x','c','v','b',' ','n','m','&','_','enter',
'1','2','3','4','5','6','7','8','9','0','backspace',
'Q','W','E','R','T','Y','U','I','O','P','\'',
'A','S','D','F','G','H','J','K','L','-','"',
'Z','X','C','V','B',' ','N','M','&','_','enter'
}
WOAH! When I paste this here, my 'L' gets an exclamation point!!! Huh???
--oh, never mind, that's a piece of fluff on my monitor.
so.... any ideas what LUA doesn't like here?
|
|
|
12-02-2020, 09:54 AM
|
#2
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
You forgot to escape the " in each third line. It must be '"'
|
|
|
12-02-2020, 10:05 AM
|
#3
|
Human being with feelings
Join Date: Mar 2007
Location: Denver, CO
Posts: 633
|
I didn't think I needed to escape it, since it was inside the other type of quotes...
Still getting the error with the code below (made some changes...)
But I guess I'll look up everything that could possibly need to be escaped...
Code:
KeyboardText = { '1','2','3','4','5','6','7','8','9','0','backspace',
'q','w','e','r','t','y','u','i','o','p','&',
'a','s','d','f','g','h','j','k','l','-','#',
'z','x','c','v','b',' ','n','m','.','_','enter',
'1','2','3','4','5','6','7','8','9','0','backspace',
'Q','W','E','R','T','Y','U','I','O','P','\"',
'A','S','D','F','G','H','J','K','L','+','\'',
'Z','X','C','V','B',' ','N','M','(',')','enter'
}
|
|
|
12-02-2020, 10:31 AM
|
#4
|
Human being with feelings
Join Date: Mar 2007
Location: Denver, CO
Posts: 633
|
Not finding anything else to escape. I'm perplexed. But something is wrong, as VSCODE keeps giving a parse error....
|
|
|
12-02-2020, 10:45 AM
|
#5
|
Human being with feelings
Join Date: Mar 2007
Location: Denver, CO
Posts: 633
|
oh wow, crazy.
I copied the text FROM THIS POST, and that works!
I had used a word processor to convert the case, and it must have put in a character that's not visible in VSCODE!!!
how trippy!
|
|
|
12-02-2020, 12:47 PM
|
#6
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Yay.
Another thing that also could help, would be using the code-snippet in Reaper's own IDE.
I personally prefer it for it's more instant about errors.
And its syntax-highlighter probably shows better the potential problematic characters.
|
|
|
12-07-2020, 04:55 PM
|
#7
|
Human being with feelings
Join Date: Mar 2007
Location: Denver, CO
Posts: 633
|
I kind of hate the reaper editor, because it does not place the cursor like 97% of software. Probably some EMACS holdover behaviour or something, but I never can get used to it... also, it throws line numbers for errors, but doesn't actually SHOW the line numbers [??]
But nevertheless that's good to know
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 01:52 PM.
|