summaryrefslogtreecommitdiffstats
path: root/SCons/Tool/JavaCommon.py
diff options
context:
space:
mode:
Diffstat (limited to 'SCons/Tool/JavaCommon.py')
-rw-r--r--SCons/Tool/JavaCommon.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/SCons/Tool/JavaCommon.py b/SCons/Tool/JavaCommon.py
index bb05977..d869b38 100644
--- a/SCons/Tool/JavaCommon.py
+++ b/SCons/Tool/JavaCommon.py
@@ -87,9 +87,10 @@ if java_parsing:
# any alphanumeric token surrounded by angle brackets (generics);
# the multi-line comment begin and end tokens /* and */;
# array declarations "[]".
+ # Lambda function symbols: ->
_reToken = re.compile(r'(\n|\\\\|//|\\[\'"]|[\'"{\};.()]|' +
r'\d*\.\d*|[A-Za-z_][\w$.]*|<[A-Za-z_]\w+>|' +
- r'/\*|\*/|\[\])')
+ r'/\*|\*/|\[\]|->)')
class OuterState: