@@ -119,10 +119,10 @@ class SyntaxConstantsEngineTest extends GroovyTestCase {
119
119
void " Rules - can load valid properties" () {
120
120
var source = """
121
121
rule.1.syntax-style=text/javascript
122
- rule.1.pattern =(?i).*javascript.*
122
+ rule.1.regexp =(?i).*javascript.*
123
123
124
124
rule.2.syntax-style=text/groovy
125
- rule.2.pattern =(?i).*groovy.*
125
+ rule.2.regexp =(?i).*groovy.*
126
126
"""
127
127
var properties = new Properties ()
128
128
properties. load(new StringReader (source))
@@ -142,10 +142,10 @@ class SyntaxConstantsEngineTest extends GroovyTestCase {
142
142
void " Rules - can load invalid properties with empty styles" () {
143
143
var source = """
144
144
rule.1.syntax-style=
145
- rule.1.pattern =(?i).*javascript.*/
145
+ rule.1.regexp =(?i).*javascript.*/
146
146
147
147
rule.2.syntax-style=text/groovy
148
- rule.2.pattern =(?i).*groovy.*
148
+ rule.2.regexp =(?i).*groovy.*
149
149
"""
150
150
var properties = new Properties ()
151
151
properties. load(new StringReader (source))
@@ -166,10 +166,10 @@ class SyntaxConstantsEngineTest extends GroovyTestCase {
166
166
void " Rules - can load invalid properties with invalid regexp" () {
167
167
var source = """
168
168
rule.1.syntax-style=text/javascript
169
- rule.1.pattern =[Jj][Aa[Vv[Aa]
169
+ rule.1.regexp =[Jj][Aa[Vv[Aa]
170
170
171
171
rule.2.syntax-style=text/groovy
172
- rule.2.pattern =(?i).*groovy.*
172
+ rule.2.regexp =(?i).*groovy.*
173
173
"""
174
174
var properties = new Properties ()
175
175
properties. load(new StringReader (source))
0 commit comments