comparison core/src/luan/impl/ThemeParser.java @ 586:a140be489a72

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 24 Aug 2015 02:17:46 -0600
parents 0742ac78fa69
children fa281ee942c8
comparison
equal deleted inserted replaced
585:bb3818249dfb 586:a140be489a72
179 private Stmt parseDef() throws ParseException { 179 private Stmt parseDef() throws ParseException {
180 int start = parser.begin(); 180 int start = parser.begin();
181 Tag tag = parseBlockTag(); 181 Tag tag = parseBlockTag();
182 if( tag == null ) 182 if( tag == null )
183 return parser.failure(null); 183 return parser.failure(null);
184 parser.match('\r'); parser.match('\n'); // ignore newline
184 Stmt rtn = null; 185 Stmt rtn = null;
185 if( tag.name.equals("Set") ) { 186 if( tag.name.equals("Set") ) {
186 String name = tag.attrs.remove("name"); 187 String name = tag.attrs.remove("name");
187 if( name == null ) 188 if( name == null )
188 throw exception("block:Set missing required attribute 'name'"); 189 throw exception("block:Set missing required attribute 'name'");