@@ -119,10 +119,10 @@ class SyntaxConstantsEngineTest extends GroovyTestCase {
119119 void " Rules - can load valid properties" () {
120120 var source = """
121121 rule.1.syntax-style=text/javascript
122- rule.1.pattern =(?i).*javascript.*
122+ rule.1.regexp =(?i).*javascript.*
123123
124124 rule.2.syntax-style=text/groovy
125- rule.2.pattern =(?i).*groovy.*
125+ rule.2.regexp =(?i).*groovy.*
126126 """
127127 var properties = new Properties ()
128128 properties. load(new StringReader (source))
@@ -142,10 +142,10 @@ class SyntaxConstantsEngineTest extends GroovyTestCase {
142142 void " Rules - can load invalid properties with empty styles" () {
143143 var source = """
144144 rule.1.syntax-style=
145- rule.1.pattern =(?i).*javascript.*/
145+ rule.1.regexp =(?i).*javascript.*/
146146
147147 rule.2.syntax-style=text/groovy
148- rule.2.pattern =(?i).*groovy.*
148+ rule.2.regexp =(?i).*groovy.*
149149 """
150150 var properties = new Properties ()
151151 properties. load(new StringReader (source))
@@ -166,10 +166,10 @@ class SyntaxConstantsEngineTest extends GroovyTestCase {
166166 void " Rules - can load invalid properties with invalid regexp" () {
167167 var source = """
168168 rule.1.syntax-style=text/javascript
169- rule.1.pattern =[Jj][Aa[Vv[Aa]
169+ rule.1.regexp =[Jj][Aa[Vv[Aa]
170170
171171 rule.2.syntax-style=text/groovy
172- rule.2.pattern =(?i).*groovy.*
172+ rule.2.regexp =(?i).*groovy.*
173173 """
174174 var properties = new Properties ()
175175 properties. load(new StringReader (source))
0 commit comments