summaryrefslogtreecommitdiff
path: root/llex.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Bug: Long brackets with a huge number of '=' causes overflowRoberto Ierusalimschy2018-12-171-14/+17
| | | | | | | A long bracket with too many equal signs can overflow the 'int' used for the counting and some arithmetic done on the value. Changing the counter to 'size_t' avoids that. (Because what is counted goes to a buffer, an overflow in the counter will first raise a buffer-overflow error.)
* Lua 5.3.5 ported to gitv5.3.5Roberto Ierusalimschy2018-12-171-1/+1
| | | | | | | This is the first commit for the branch Lua 5.3. All source files were copied from the official distribution of 5.3.5 in the Lua site. The test files are the same of 5.3.4. The manual came from the previous RCS repository, revision 1.167.1.2.
* now that 'luaO_str2num' always accepts a dot as a radix character,Roberto Ierusalimschy2016-05-021-33/+2
| | | | the lexer does not need to bother with this issue.
* details (typos in comments)Roberto Ierusalimschy2015-11-191-2/+2
|
* macro 'buff2num' replaced by its body (it caused more harm than goodRoberto Ierusalimschy2015-10-281-5/+3
| | | | to readability)
* reuse of 'addinfo' by lexical errorsRoberto Ierusalimschy2015-05-221-4/+3
|
* more consistent use of locale radix character across LuaRoberto Ierusalimschy2015-04-031-7/+2
|
* details (avoid 'lint' warnings)Roberto Ierusalimschy2015-03-281-5/+7
|
* detail (use 'luaS_newliteral' when possible)Roberto Ierusalimschy2015-03-031-3/+3
|
* small bug (error of "chunk has too many lines" might use 't.token'Roberto Ierusalimschy2014-11-141-2/+3
| | | | before reading the first token)
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-4/+6
| | | | any other header file
* comments (a few extra quotes around identifiers)Roberto Ierusalimschy2014-10-301-2/+2
|
* detailRoberto Ierusalimschy2014-10-261-2/+2
|
* `name' in comments changed to 'name'Roberto Ierusalimschy2014-10-251-7/+7
|
* added 'l_' prefix for names that can be redefined externallyRoberto Ierusalimschy2014-10-221-4/+4
|
* macros 'LUA_QL'/'LUA_QL' deprecatedRoberto Ierusalimschy2014-10-171-4/+4
|
* '$c' in 'lua_pushfstring' prints non-printable characters withRoberto Ierusalimschy2014-10-101-4/+3
| | | | their codes
* better to use 'long' to represent UTF-8 code pointsRoberto Ierusalimschy2014-10-011-3/+3
|
* type 'TString' refers directly to the structure inside the unionRoberto Ierusalimschy2014-07-181-6/+6
| | | | (union used only for size purposes)
* added check for conversion 'obj2gco' (and corrections for smallRoberto Ierusalimschy2014-07-181-3/+3
| | | | problems detected by this check)
* small improvements concerning 'check_next'Roberto Ierusalimschy2014-05-211-25/+39
|
* better error message for unfinished long strings/commentsRoberto Ierusalimschy2014-05-111-4/+8
|
* 'lua_strtonum' (and 'luaO_str2num') now return string size, instead ofRoberto Ierusalimschy2014-05-011-2/+2
| | | | receiving it
* 'luaO_str2d' + 'luaO_str2int' replaced by 'luaO_str2num' (which convertsRoberto Ierusalimschy2014-04-301-27/+25
| | | | to float or integer according to the string syntax)
* new syntax for Unicode escape '\u{012F}'Roberto Ierusalimschy2014-02-141-5/+8
|
* UTF-8 encoding exported as format '%U' in 'lua_pushfstring'Roberto Ierusalimschy2014-02-061-18/+7
|
* added support for UTF-8 escapesRoberto Ierusalimschy2014-02-041-11/+45
|
* simpler way to create messages for errors in escape sequencesRoberto Ierusalimschy2014-01-311-27/+31
|
* first implementation of '<<', '>>', and '~' (bitwise not)Roberto Ierusalimschy2013-12-301-6/+9
|
* bug (GC can collect long identifier during parser) + change (usingRoberto Ierusalimschy2013-08-301-6/+9
| | | | a single constant table for all functions in a chunk)
* "fixed" objects kept in a separated list (instead of being kept inRoberto Ierusalimschy2013-08-211-4/+6
| | | | 'allgc' list with a bit marking them)
* new constant 'MAX_SIZE', distinct from 'MAX_SIZET', for sizes visibleRoberto Ierusalimschy2013-06-191-2/+2
| | | | from Lua; these must fit in a lua_Integer
* 'luaO_str2int' more generic: accepts white spaces around the numeralRoberto Ierusalimschy2013-05-141-2/+3
| | | | and handles signal
* new operation '//' (integer division)Roberto Ierusalimschy2013-04-261-2/+7
|
* first implementation of literal integers (no constant folding yet)Roberto Ierusalimschy2013-04-161-17/+30
|
* typos in commentsRoberto Ierusalimschy2013-03-161-2/+2
|
* added some commentsRoberto Ierusalimschy2012-12-051-4/+4
|
* field 'reserved' -> 'extra' (may be used for other purposes too)Roberto Ierusalimschy2012-01-231-4/+4
|
* bug: Lexical gets confused with some combination of arithmeticRoberto Ierusalimschy2012-01-201-5/+16
| | | | operators and hexadecimal numbers
* more uses of 'l_noret'Roberto Ierusalimschy2011-11-301-4/+4
|
* comments about use of 'luaH_set'Roberto Ierusalimschy2011-08-151-1/+3
|
* commentRoberto Ierusalimschy2011-08-111-2/+2
|
* no more 'luaH_setstr (used only once) + 'luaH_setint' receives valueRoberto Ierusalimschy2011-08-091-2/+2
| | | | to be set.
* no more 'zungetc' (better not to read next char)Roberto Ierusalimschy2011-07-151-19/+19
|
* better code for numerical escapesRoberto Ierusalimschy2011-07-151-28/+19
|
* detailRoberto Ierusalimschy2011-07-081-4/+4
|
* error on invalid escape sequencesRoberto Ierusalimschy2011-07-081-31/+38
|
* detail (comment)Roberto Ierusalimschy2011-07-061-2/+2
|
* '\*' -> '\z' + '\?' is not an official escape sequenceRoberto Ierusalimschy2011-07-051-3/+3
|
* label syntax changed to '::label::'Roberto Ierusalimschy2011-06-231-2/+7
|