Commit 6551e86a03f5fa1f499386c96faa4587bdfac24e

Avatar

Repository git://github.com/reductivelabs/puppet master
by masterzen (Using name ‘Brice Figureau’) on 2009-09-21 20:48 (3 months ago)

Fix #2664 - Mathematic expressions mis-lexed as Regex
This is not the real fix. It is just an hot-fix to limit
the issue.
The issue is that the lexer regexes have precedences over simple
'/' (divide).
In the following expression:
$var = 4096 / 4
$var2 = "/tmp/file"

The / 4... part is mis-lexed as a regex instead of a mathematical
expression.
The current fix limits regex to one-line.

Signed-off-by: Brice Figureau <brice-...@daysofwonder.com>

Language Totals

  Language Code Added Code Removed Comments Added Comments Removed Blanks Added Blanks Removed
  Ruby 4 1 0 0 1 0

Files Changed

[2 total ]
File Language Code Added Code Removed Comments Added Comments Removed Blanks Added Blanks Removed
lib/puppet/parser/lexer.rb
  Ruby 1 1 0 0 0 0
spec/unit/parser/lexer.rb
  Ruby 3 0 0 0 1 0