oga 0.3.4-java → 1.0.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ext/c/lexer.rl CHANGED
@@ -113,7 +113,6 @@ VALUE oga_xml_lexer_advance(VALUE self, VALUE data_block)
113
113
  ID id_on_element_name = rb_intern("on_element_name");
114
114
  ID id_on_element_ns = rb_intern("on_element_ns");
115
115
  ID id_on_element_open_end = rb_intern("on_element_open_end");
116
- ID id_on_element_start = rb_intern("on_element_start");
117
116
  ID id_on_proc_ins_end = rb_intern("on_proc_ins_end");
118
117
  ID id_on_proc_ins_name = rb_intern("on_proc_ins_name");
119
118
  ID id_on_proc_ins_start = rb_intern("on_proc_ins_start");
@@ -421,7 +421,6 @@ static final int java_lexer_en_main = 34;
421
421
  String id_on_element_name = "on_element_name";
422
422
  String id_on_element_ns = "on_element_ns";
423
423
  String id_on_element_open_end = "on_element_open_end";
424
- String id_on_element_start = "on_element_start";
425
424
  String id_on_proc_ins_end = "on_proc_ins_end";
426
425
  String id_on_proc_ins_name = "on_proc_ins_name";
427
426
  String id_on_proc_ins_start = "on_proc_ins_start";
@@ -434,7 +433,7 @@ static final int java_lexer_en_main = 34;
434
433
  String id_on_xml_decl_start = "on_xml_decl_start";
435
434
 
436
435
 
437
- // line 438 "ext/java/org/liboga/xml/Lexer.java"
436
+ // line 437 "ext/java/org/liboga/xml/Lexer.java"
438
437
  {
439
438
  int _klen;
440
439
  int _trans = 0;
@@ -463,7 +462,7 @@ case 1:
463
462
  // line 1 "NONE"
464
463
  {ts = p;}
465
464
  break;
466
- // line 467 "ext/java/org/liboga/xml/Lexer.java"
465
+ // line 466 "ext/java/org/liboga/xml/Lexer.java"
467
466
  }
468
467
  }
469
468
 
@@ -533,7 +532,7 @@ case 3:
533
532
  }
534
533
  break;
535
534
  case 1:
536
- // line 545 "ext/ragel/base_lexer.rl"
535
+ // line 544 "ext/ragel/base_lexer.rl"
537
536
  { mark = p; }
538
537
  break;
539
538
  case 4:
@@ -814,20 +813,20 @@ case 3:
814
813
  {te = p;p--;}
815
814
  break;
816
815
  case 36:
817
- // line 387 "ext/ragel/base_lexer.rl"
816
+ // line 386 "ext/ragel/base_lexer.rl"
818
817
  {te = p+1;{
819
818
  callback(id_on_element_ns, data, encoding, ts, te - 1);
820
819
  }}
821
820
  break;
822
821
  case 37:
823
- // line 391 "ext/ragel/base_lexer.rl"
822
+ // line 390 "ext/ragel/base_lexer.rl"
824
823
  {te = p;p--;{
825
824
  callback(id_on_element_name, data, encoding, ts, te);
826
825
  ( this.cs) = 76;
827
826
  }}
828
827
  break;
829
828
  case 38:
830
- // line 406 "ext/ragel/base_lexer.rl"
829
+ // line 405 "ext/ragel/base_lexer.rl"
831
830
  {te = p+1;{
832
831
  p--;
833
832
  ( this.cs) = 75;
@@ -841,7 +840,7 @@ case 3:
841
840
  }}
842
841
  break;
843
842
  case 40:
844
- // line 413 "ext/ragel/base_lexer.rl"
843
+ // line 412 "ext/ragel/base_lexer.rl"
845
844
  {te = p;p--;{
846
845
  callback_simple(id_on_string_squote);
847
846
 
@@ -851,7 +850,7 @@ case 3:
851
850
  }}
852
851
  break;
853
852
  case 41:
854
- // line 429 "ext/ragel/base_lexer.rl"
853
+ // line 428 "ext/ragel/base_lexer.rl"
855
854
  {te = p+1;{
856
855
  callback_simple(id_on_string_squote);
857
856
 
@@ -859,7 +858,7 @@ case 3:
859
858
  }}
860
859
  break;
861
860
  case 42:
862
- // line 435 "ext/ragel/base_lexer.rl"
861
+ // line 434 "ext/ragel/base_lexer.rl"
863
862
  {te = p+1;{
864
863
  callback_simple(id_on_string_dquote);
865
864
 
@@ -880,13 +879,13 @@ case 3:
880
879
  }}
881
880
  break;
882
881
  case 45:
883
- // line 450 "ext/ragel/base_lexer.rl"
882
+ // line 449 "ext/ragel/base_lexer.rl"
884
883
  {te = p+1;{
885
884
  callback(id_on_attribute_ns, data, encoding, ts, te - 1);
886
885
  }}
887
886
  break;
888
887
  case 46:
889
- // line 459 "ext/ragel/base_lexer.rl"
888
+ // line 458 "ext/ragel/base_lexer.rl"
890
889
  {te = p+1;{
891
890
  if ( html_p )
892
891
  {
@@ -899,7 +898,7 @@ case 3:
899
898
  }}
900
899
  break;
901
900
  case 47:
902
- // line 471 "ext/ragel/base_lexer.rl"
901
+ // line 470 "ext/ragel/base_lexer.rl"
903
902
  {te = p+1;{
904
903
  callback_simple(id_on_element_open_end);
905
904
 
@@ -918,14 +917,14 @@ case 3:
918
917
  }}
919
918
  break;
920
919
  case 48:
921
- // line 489 "ext/ragel/base_lexer.rl"
920
+ // line 488 "ext/ragel/base_lexer.rl"
922
921
  {te = p+1;{
923
922
  callback_simple(id_on_element_end);
924
923
  ( this.cs) = 34;
925
924
  }}
926
925
  break;
927
926
  case 49:
928
- // line 494 "ext/ragel/base_lexer.rl"
927
+ // line 493 "ext/ragel/base_lexer.rl"
929
928
  {te = p+1;}
930
929
  break;
931
930
  case 50:
@@ -935,17 +934,17 @@ case 3:
935
934
  }}
936
935
  break;
937
936
  case 51:
938
- // line 454 "ext/ragel/base_lexer.rl"
937
+ // line 453 "ext/ragel/base_lexer.rl"
939
938
  {te = p;p--;{
940
939
  callback(id_on_attribute, data, encoding, ts, te);
941
940
  }}
942
941
  break;
943
942
  case 52:
944
- // line 494 "ext/ragel/base_lexer.rl"
943
+ // line 493 "ext/ragel/base_lexer.rl"
945
944
  {te = p;p--;}
946
945
  break;
947
946
  case 53:
948
- // line 531 "ext/ragel/base_lexer.rl"
947
+ // line 530 "ext/ragel/base_lexer.rl"
949
948
  {te = p+1;{
950
949
  callback(id_on_text, data, encoding, ts, te);
951
950
 
@@ -960,7 +959,7 @@ case 3:
960
959
  }}
961
960
  break;
962
961
  case 54:
963
- // line 545 "ext/ragel/base_lexer.rl"
962
+ // line 544 "ext/ragel/base_lexer.rl"
964
963
  {te = p+1;{
965
964
  callback(id_on_text, data, encoding, ts, mark);
966
965
 
@@ -978,7 +977,7 @@ case 3:
978
977
  }}
979
978
  break;
980
979
  case 55:
981
- // line 531 "ext/ragel/base_lexer.rl"
980
+ // line 530 "ext/ragel/base_lexer.rl"
982
981
  {te = p;p--;{
983
982
  callback(id_on_text, data, encoding, ts, te);
984
983
 
@@ -993,7 +992,7 @@ case 3:
993
992
  }}
994
993
  break;
995
994
  case 56:
996
- // line 379 "ext/ragel/base_lexer.rl"
995
+ // line 378 "ext/ragel/base_lexer.rl"
997
996
  {te = p+1;{
998
997
  callback_simple(id_on_element_end);
999
998
 
@@ -1001,7 +1000,7 @@ case 3:
1001
1000
  }}
1002
1001
  break;
1003
1002
  case 57:
1004
- // line 519 "ext/ragel/base_lexer.rl"
1003
+ // line 518 "ext/ragel/base_lexer.rl"
1005
1004
  {te = p;p--;{
1006
1005
  callback(id_on_text, data, encoding, ts, te);
1007
1006
 
@@ -1014,7 +1013,7 @@ case 3:
1014
1013
  }}
1015
1014
  break;
1016
1015
  case 58:
1017
- // line 519 "ext/ragel/base_lexer.rl"
1016
+ // line 518 "ext/ragel/base_lexer.rl"
1018
1017
  {{p = ((te))-1;}{
1019
1018
  callback(id_on_text, data, encoding, ts, te);
1020
1019
 
@@ -1027,7 +1026,7 @@ case 3:
1027
1026
  }}
1028
1027
  break;
1029
1028
  case 59:
1030
- // line 379 "ext/ragel/base_lexer.rl"
1029
+ // line 378 "ext/ragel/base_lexer.rl"
1031
1030
  {te = p+1;{
1032
1031
  callback_simple(id_on_element_end);
1033
1032
 
@@ -1035,7 +1034,7 @@ case 3:
1035
1034
  }}
1036
1035
  break;
1037
1036
  case 60:
1038
- // line 519 "ext/ragel/base_lexer.rl"
1037
+ // line 518 "ext/ragel/base_lexer.rl"
1039
1038
  {te = p;p--;{
1040
1039
  callback(id_on_text, data, encoding, ts, te);
1041
1040
 
@@ -1048,7 +1047,7 @@ case 3:
1048
1047
  }}
1049
1048
  break;
1050
1049
  case 61:
1051
- // line 519 "ext/ragel/base_lexer.rl"
1050
+ // line 518 "ext/ragel/base_lexer.rl"
1052
1051
  {{p = ((te))-1;}{
1053
1052
  callback(id_on_text, data, encoding, ts, te);
1054
1053
 
@@ -1087,19 +1086,18 @@ case 3:
1087
1086
  case 66:
1088
1087
  // line 369 "ext/ragel/base_lexer.rl"
1089
1088
  {te = p+1;{
1090
- callback_simple(id_on_element_start);
1091
1089
  p--;
1092
1090
  ( this.cs) = 71;
1093
1091
  }}
1094
1092
  break;
1095
1093
  case 67:
1096
- // line 375 "ext/ragel/base_lexer.rl"
1094
+ // line 374 "ext/ragel/base_lexer.rl"
1097
1095
  {te = p+1;{
1098
1096
  callback_simple(id_on_element_end);
1099
1097
  }}
1100
1098
  break;
1101
1099
  case 68:
1102
- // line 505 "ext/ragel/base_lexer.rl"
1100
+ // line 504 "ext/ragel/base_lexer.rl"
1103
1101
  {te = p+1;{
1104
1102
  p--;
1105
1103
  ( this.cs) = 80;
@@ -1130,14 +1128,14 @@ case 3:
1130
1128
  }}
1131
1129
  break;
1132
1130
  case 71:
1133
- // line 505 "ext/ragel/base_lexer.rl"
1131
+ // line 504 "ext/ragel/base_lexer.rl"
1134
1132
  {te = p;p--;{
1135
1133
  p--;
1136
1134
  ( this.cs) = 80;
1137
1135
  }}
1138
1136
  break;
1139
1137
  case 72:
1140
- // line 505 "ext/ragel/base_lexer.rl"
1138
+ // line 504 "ext/ragel/base_lexer.rl"
1141
1139
  {{p = ((te))-1;}{
1142
1140
  p--;
1143
1141
  ( this.cs) = 80;
@@ -1163,7 +1161,7 @@ case 3:
1163
1161
  }
1164
1162
  }
1165
1163
  break;
1166
- // line 1167 "ext/java/org/liboga/xml/Lexer.java"
1164
+ // line 1165 "ext/java/org/liboga/xml/Lexer.java"
1167
1165
  }
1168
1166
  }
1169
1167
  }
@@ -1177,7 +1175,7 @@ case 2:
1177
1175
  // line 1 "NONE"
1178
1176
  {ts = -1;}
1179
1177
  break;
1180
- // line 1181 "ext/java/org/liboga/xml/Lexer.java"
1178
+ // line 1179 "ext/java/org/liboga/xml/Lexer.java"
1181
1179
  }
1182
1180
  }
1183
1181
 
@@ -1204,7 +1202,7 @@ case 5:
1204
1202
  break; }
1205
1203
  }
1206
1204
 
1207
- // line 137 "ext/java/org/liboga/xml/Lexer.rl"
1205
+ // line 136 "ext/java/org/liboga/xml/Lexer.rl"
1208
1206
 
1209
1207
  this.lines = lines;
1210
1208
 
@@ -1286,5 +1284,5 @@ case 5:
1286
1284
  }
1287
1285
 
1288
1286
 
1289
- // line 224 "ext/java/org/liboga/xml/Lexer.rl"
1287
+ // line 223 "ext/java/org/liboga/xml/Lexer.rl"
1290
1288
 
@@ -121,7 +121,6 @@ public class Lexer extends RubyObject
121
121
  String id_on_element_name = "on_element_name";
122
122
  String id_on_element_ns = "on_element_ns";
123
123
  String id_on_element_open_end = "on_element_open_end";
124
- String id_on_element_start = "on_element_start";
125
124
  String id_on_proc_ins_end = "on_proc_ins_end";
126
125
  String id_on_proc_ins_name = "on_proc_ins_name";
127
126
  String id_on_proc_ins_start = "on_proc_ins_start";
@@ -367,7 +367,6 @@
367
367
  element_end = '</' identifier (':' identifier)* '>';
368
368
 
369
369
  action start_element {
370
- callback_simple(id_on_element_start);
371
370
  fhold;
372
371
  fnext element_name;
373
372
  }
data/lib/liboga.jar CHANGED
Binary file
data/lib/oga.rb CHANGED
@@ -7,6 +7,8 @@ require_relative 'oga/version'
7
7
  require_relative 'oga/oga'
8
8
  require_relative 'oga/lru'
9
9
  require_relative 'oga/entity_decoder'
10
+ require_relative 'oga/blacklist'
11
+ require_relative 'oga/whitelist'
10
12
 
11
13
  # Load these first so that the native extensions don't have to define the
12
14
  # Oga::XML namespace.
@@ -0,0 +1,40 @@
1
+ module Oga
2
+ ##
3
+ # @api private
4
+ #
5
+ class Blacklist
6
+ # @return [Set]
7
+ attr_reader :names
8
+
9
+ ##
10
+ # @param [Array] names
11
+ #
12
+ def initialize(names)
13
+ @names = Set.new(names + names.map(&:upcase))
14
+ end
15
+
16
+ ##
17
+ # @yieldparam [String]
18
+ #
19
+ def each
20
+ names.each do |value|
21
+ yield value
22
+ end
23
+ end
24
+
25
+ ##
26
+ # @return [TrueClass|FalseClass]
27
+ #
28
+ def allow?(name)
29
+ return !names.include?(name)
30
+ end
31
+
32
+ ##
33
+ # @param [Oga::Blacklist] other
34
+ # @return [Oga::Blacklist]
35
+ #
36
+ def +(other)
37
+ return self.class.new(names + other.names)
38
+ end
39
+ end # Blacklist
40
+ end # Oga
data/lib/oga/css/lexer.rb CHANGED
@@ -18,9 +18,11 @@ module Oga
18
18
  # multiple threads. However, no global state is used so you can use separate
19
19
  # instances in threads just fine.
20
20
  #
21
+ # @api private
22
+ #
21
23
  class Lexer
22
24
 
23
- # line 24 "lib/oga/css/lexer.rb"
25
+ # line 26 "lib/oga/css/lexer.rb"
24
26
  class << self
25
27
  attr_accessor :_css_lexer_trans_keys
26
28
  private :_css_lexer_trans_keys, :_css_lexer_trans_keys=
@@ -266,7 +268,7 @@ end
266
268
  self.css_lexer_en_main = 13;
267
269
 
268
270
 
269
- # line 21 "lib/oga/css/lexer.rl"
271
+ # line 23 "lib/oga/css/lexer.rl"
270
272
 
271
273
  # % fix highlight
272
274
 
@@ -327,7 +329,7 @@ self.css_lexer_en_main = 13;
327
329
  _css_lexer_trans_targs = self.class.send(:_css_lexer_trans_targs)
328
330
 
329
331
 
330
- # line 331 "lib/oga/css/lexer.rb"
332
+ # line 333 "lib/oga/css/lexer.rb"
331
333
  begin
332
334
  testEof = false
333
335
  _slen, _trans, _keys, _inds, _acts, _nacts = nil
@@ -355,7 +357,7 @@ begin
355
357
  begin
356
358
  ts = p
357
359
  end
358
- # line 359 "lib/oga/css/lexer.rb"
360
+ # line 361 "lib/oga/css/lexer.rb"
359
361
  end
360
362
  _keys = cs << 1
361
363
  _inds = _css_lexer_index_offsets[cs]
@@ -375,25 +377,25 @@ ts = p
375
377
  if _css_lexer_trans_actions[_trans] != 0
376
378
  case _css_lexer_trans_actions[_trans]
377
379
  when 29 then
378
- # line 249 "lib/oga/css/lexer.rl"
380
+ # line 251 "lib/oga/css/lexer.rl"
379
381
  begin
380
382
  te = p+1
381
383
  begin add_token(:T_NTH) end
382
384
  end
383
385
  when 3 then
384
- # line 251 "lib/oga/css/lexer.rl"
386
+ # line 253 "lib/oga/css/lexer.rl"
385
387
  begin
386
388
  te = p+1
387
389
  begin add_token(:T_ODD) end
388
390
  end
389
391
  when 2 then
390
- # line 252 "lib/oga/css/lexer.rl"
392
+ # line 254 "lib/oga/css/lexer.rl"
391
393
  begin
392
394
  te = p+1
393
395
  begin add_token(:T_EVEN) end
394
396
  end
395
397
  when 26 then
396
- # line 233 "lib/oga/css/lexer.rl"
398
+ # line 235 "lib/oga/css/lexer.rl"
397
399
  begin
398
400
  te = p+1
399
401
  begin
@@ -403,7 +405,7 @@ te = p+1
403
405
  end
404
406
  end
405
407
  when 27 then
406
- # line 160 "lib/oga/css/lexer.rl"
408
+ # line 162 "lib/oga/css/lexer.rl"
407
409
  begin
408
410
  te = p+1
409
411
  begin
@@ -411,18 +413,18 @@ te = p+1
411
413
  end
412
414
  end
413
415
  when 30 then
414
- # line 244 "lib/oga/css/lexer.rl"
416
+ # line 246 "lib/oga/css/lexer.rl"
415
417
  begin
416
418
  te = p
417
419
  p = p - 1; end
418
420
  when 32 then
419
- # line 250 "lib/oga/css/lexer.rl"
421
+ # line 252 "lib/oga/css/lexer.rl"
420
422
  begin
421
423
  te = p
422
424
  p = p - 1; begin add_token(:T_MINUS) end
423
425
  end
424
426
  when 31 then
425
- # line 193 "lib/oga/css/lexer.rl"
427
+ # line 195 "lib/oga/css/lexer.rl"
426
428
  begin
427
429
  te = p
428
430
  p = p - 1; begin
@@ -432,7 +434,7 @@ p = p - 1; begin
432
434
  end
433
435
  end
434
436
  when 33 then
435
- # line 160 "lib/oga/css/lexer.rl"
437
+ # line 162 "lib/oga/css/lexer.rl"
436
438
  begin
437
439
  te = p
438
440
  p = p - 1; begin
@@ -456,43 +458,43 @@ end
456
458
  end
457
459
  end
458
460
  when 34 then
459
- # line 290 "lib/oga/css/lexer.rl"
461
+ # line 292 "lib/oga/css/lexer.rl"
460
462
  begin
461
463
  te = p+1
462
464
  begin add_token(:T_EQ) end
463
465
  end
464
466
  when 8 then
465
- # line 291 "lib/oga/css/lexer.rl"
467
+ # line 293 "lib/oga/css/lexer.rl"
466
468
  begin
467
469
  te = p+1
468
470
  begin add_token(:T_SPACE_IN) end
469
471
  end
470
472
  when 6 then
471
- # line 292 "lib/oga/css/lexer.rl"
473
+ # line 294 "lib/oga/css/lexer.rl"
472
474
  begin
473
475
  te = p+1
474
476
  begin add_token(:T_STARTS_WITH) end
475
477
  end
476
478
  when 5 then
477
- # line 293 "lib/oga/css/lexer.rl"
479
+ # line 295 "lib/oga/css/lexer.rl"
478
480
  begin
479
481
  te = p+1
480
482
  begin add_token(:T_ENDS_WITH) end
481
483
  end
482
484
  when 38 then
483
- # line 294 "lib/oga/css/lexer.rl"
485
+ # line 296 "lib/oga/css/lexer.rl"
484
486
  begin
485
487
  te = p+1
486
488
  begin add_token(:T_IN) end
487
489
  end
488
490
  when 7 then
489
- # line 295 "lib/oga/css/lexer.rl"
491
+ # line 297 "lib/oga/css/lexer.rl"
490
492
  begin
491
493
  te = p+1
492
494
  begin add_token(:T_HYPHEN_IN) end
493
495
  end
494
496
  when 35 then
495
- # line 272 "lib/oga/css/lexer.rl"
497
+ # line 274 "lib/oga/css/lexer.rl"
496
498
  begin
497
499
  te = p+1
498
500
  begin
@@ -502,7 +504,7 @@ te = p+1
502
504
  end
503
505
  end
504
506
  when 4 then
505
- # line 212 "lib/oga/css/lexer.rl"
507
+ # line 214 "lib/oga/css/lexer.rl"
506
508
  begin
507
509
  te = p+1
508
510
  begin
@@ -510,12 +512,12 @@ te = p+1
510
512
  end
511
513
  end
512
514
  when 36 then
513
- # line 280 "lib/oga/css/lexer.rl"
515
+ # line 282 "lib/oga/css/lexer.rl"
514
516
  begin
515
517
  te = p
516
518
  p = p - 1; end
517
519
  when 37 then
518
- # line 160 "lib/oga/css/lexer.rl"
520
+ # line 162 "lib/oga/css/lexer.rl"
519
521
  begin
520
522
  te = p
521
523
  p = p - 1; begin
@@ -523,7 +525,7 @@ p = p - 1; begin
523
525
  end
524
526
  end
525
527
  when 14 then
526
- # line 266 "lib/oga/css/lexer.rl"
528
+ # line 268 "lib/oga/css/lexer.rl"
527
529
  begin
528
530
  te = p+1
529
531
  begin
@@ -533,7 +535,7 @@ te = p+1
533
535
  end
534
536
  end
535
537
  when 15 then
536
- # line 145 "lib/oga/css/lexer.rl"
538
+ # line 147 "lib/oga/css/lexer.rl"
537
539
  begin
538
540
  te = p+1
539
541
  begin
@@ -541,7 +543,7 @@ te = p+1
541
543
  end
542
544
  end
543
545
  when 12 then
544
- # line 227 "lib/oga/css/lexer.rl"
546
+ # line 229 "lib/oga/css/lexer.rl"
545
547
  begin
546
548
  te = p+1
547
549
  begin
@@ -551,7 +553,7 @@ te = p+1
551
553
  end
552
554
  end
553
555
  when 13 then
554
- # line 160 "lib/oga/css/lexer.rl"
556
+ # line 162 "lib/oga/css/lexer.rl"
555
557
  begin
556
558
  te = p+1
557
559
  begin
@@ -559,30 +561,30 @@ te = p+1
559
561
  end
560
562
  end
561
563
  when 11 then
562
- # line 315 "lib/oga/css/lexer.rl"
564
+ # line 317 "lib/oga/css/lexer.rl"
563
565
  begin
564
566
  te = p+1
565
567
  end
566
568
  when 22 then
567
- # line 304 "lib/oga/css/lexer.rl"
569
+ # line 306 "lib/oga/css/lexer.rl"
568
570
  begin
569
571
  te = p
570
572
  p = p - 1; begin add_token(:T_GREATER) end
571
573
  end
572
574
  when 19 then
573
- # line 305 "lib/oga/css/lexer.rl"
575
+ # line 307 "lib/oga/css/lexer.rl"
574
576
  begin
575
577
  te = p
576
578
  p = p - 1; begin add_token(:T_PLUS) end
577
579
  end
578
580
  when 24 then
579
- # line 306 "lib/oga/css/lexer.rl"
581
+ # line 308 "lib/oga/css/lexer.rl"
580
582
  begin
581
583
  te = p
582
584
  p = p - 1; begin add_token(:T_TILDE) end
583
585
  end
584
586
  when 17 then
585
- # line 149 "lib/oga/css/lexer.rl"
587
+ # line 151 "lib/oga/css/lexer.rl"
586
588
  begin
587
589
  te = p
588
590
  p = p - 1; begin
@@ -590,7 +592,7 @@ p = p - 1; begin
590
592
  end
591
593
  end
592
594
  when 16 then
593
- # line 135 "lib/oga/css/lexer.rl"
595
+ # line 137 "lib/oga/css/lexer.rl"
594
596
  begin
595
597
  te = p
596
598
  p = p - 1; begin
@@ -598,7 +600,7 @@ p = p - 1; begin
598
600
  end
599
601
  end
600
602
  when 23 then
601
- # line 160 "lib/oga/css/lexer.rl"
603
+ # line 162 "lib/oga/css/lexer.rl"
602
604
  begin
603
605
  te = p
604
606
  p = p - 1; begin
@@ -606,26 +608,26 @@ p = p - 1; begin
606
608
  end
607
609
  end
608
610
  when 18 then
609
- # line 139 "lib/oga/css/lexer.rl"
611
+ # line 141 "lib/oga/css/lexer.rl"
610
612
  begin
611
613
  add_token(:T_HASH) end
612
- # line 302 "lib/oga/css/lexer.rl"
614
+ # line 304 "lib/oga/css/lexer.rl"
613
615
  begin
614
616
  te = p
615
617
  p = p - 1; end
616
618
  when 20 then
617
- # line 140 "lib/oga/css/lexer.rl"
619
+ # line 142 "lib/oga/css/lexer.rl"
618
620
  begin
619
621
  add_token(:T_DOT) end
620
- # line 302 "lib/oga/css/lexer.rl"
622
+ # line 304 "lib/oga/css/lexer.rl"
621
623
  begin
622
624
  te = p
623
625
  p = p - 1; end
624
626
  when 21 then
625
- # line 141 "lib/oga/css/lexer.rl"
627
+ # line 143 "lib/oga/css/lexer.rl"
626
628
  begin
627
629
  add_token(:T_COLON) end
628
- # line 302 "lib/oga/css/lexer.rl"
630
+ # line 304 "lib/oga/css/lexer.rl"
629
631
  begin
630
632
  te = p
631
633
  p = p - 1; end
@@ -634,10 +636,10 @@ p = p - 1; end
634
636
  begin
635
637
  te = p+1
636
638
  end
637
- # line 250 "lib/oga/css/lexer.rl"
639
+ # line 252 "lib/oga/css/lexer.rl"
638
640
  begin
639
641
  act = 3; end
640
- # line 641 "lib/oga/css/lexer.rb"
642
+ # line 643 "lib/oga/css/lexer.rb"
641
643
  end
642
644
  end
643
645
  end
@@ -655,7 +657,7 @@ ts = nil; end
655
657
  begin
656
658
  act = 0
657
659
  end
658
- # line 659 "lib/oga/css/lexer.rb"
660
+ # line 661 "lib/oga/css/lexer.rb"
659
661
  end
660
662
 
661
663
  if cs == 0
@@ -684,7 +686,7 @@ act = 0
684
686
  end
685
687
  end
686
688
 
687
- # line 81 "lib/oga/css/lexer.rl"
689
+ # line 83 "lib/oga/css/lexer.rl"
688
690
 
689
691
  # % fix highlight
690
692
  ensure
@@ -735,7 +737,7 @@ end
735
737
  end
736
738
 
737
739
 
738
- # line 317 "lib/oga/css/lexer.rl"
740
+ # line 319 "lib/oga/css/lexer.rl"
739
741
 
740
742
  end # Lexer
741
743
  end # CSS