aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2016-06-08 23:36:06 +0200
committerRoel Spilker <r.spilker@gmail.com>2016-06-08 23:36:06 +0200
commitcc36ab36d154ffab55bfa74e55a79a7b8b2fcd63 (patch)
treebce65603170f17041b389ff8ec7df8ee6c130f55
parentea219cd7ce76fa1140901050cce73e58f9ddb6d1 (diff)
downloadlombok-cc36ab36d154ffab55bfa74e55a79a7b8b2fcd63.tar.gz
lombok-cc36ab36d154ffab55bfa74e55a79a7b8b2fcd63.tar.bz2
lombok-cc36ab36d154ffab55bfa74e55a79a7b8b2fcd63.zip
don't skip empty lines in the line number count for config files
-rw-r--r--src/core/lombok/core/configuration/ConfigurationParser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/core/configuration/ConfigurationParser.java b/src/core/lombok/core/configuration/ConfigurationParser.java
index f0a9e142..29a6741b 100644
--- a/src/core/lombok/core/configuration/ConfigurationParser.java
+++ b/src/core/lombok/core/configuration/ConfigurationParser.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2014 The Project Lombok Authors.
+ * Copyright (C) 2014-2016 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -27,7 +27,7 @@ import java.util.regex.Pattern;
public class ConfigurationParser {
private static final Pattern LINE = Pattern.compile("(?:clear\\s+([^=]+))|(?:(\\S*?)\\s*([-+]?=)\\s*(.*?))");
- private static final Pattern NEWLINE_FINDER = Pattern.compile("^\\s*(.*?)\\s*$", Pattern.MULTILINE);
+ private static final Pattern NEWLINE_FINDER = Pattern.compile("^[\t ]*(.*?)[\t ]*$", Pattern.MULTILINE);
private ConfigurationProblemReporter reporter;