mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/json/parser/parser.rl: add local variables for emacs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bf794afbf9
commit
bc1e4b4e2a
2 changed files with 32 additions and 18 deletions
|
@ -1933,3 +1933,10 @@ void Init_parser()
|
||||||
i_iconv = rb_intern("iconv");
|
i_iconv = rb_intern("iconv");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Local variables:
|
||||||
|
* mode: c
|
||||||
|
* c-file-style: ruby
|
||||||
|
* End:
|
||||||
|
*/
|
||||||
|
|
|
@ -97,7 +97,7 @@ static ID i_json_creatable_p, i_json_create, i_create_id, i_create_additions,
|
||||||
VNaN = 'NaN';
|
VNaN = 'NaN';
|
||||||
VInfinity = 'Infinity';
|
VInfinity = 'Infinity';
|
||||||
VMinusInfinity = '-Infinity';
|
VMinusInfinity = '-Infinity';
|
||||||
begin_value = [nft"\-[{NI] | digit;
|
begin_value = [nft\"\-\[\{NI] | digit;
|
||||||
begin_object = '{';
|
begin_object = '{';
|
||||||
end_object = '}';
|
end_object = '}';
|
||||||
begin_array = '[';
|
begin_array = '[';
|
||||||
|
@ -467,7 +467,7 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
|
||||||
|
|
||||||
action exit { fhold; fbreak; }
|
action exit { fhold; fbreak; }
|
||||||
|
|
||||||
main := '"' ((^(["\\] | 0..0x1f) | '\\'["\\/bfnrt] | '\\u'[0-9a-fA-F]{4} | '\\'^(["\\/bfnrtu]|0..0x1f))* %parse_string) '"' @exit;
|
main := '"' ((^([\"\\] | 0..0x1f) | '\\'[\"\\/bfnrt] | '\\u'[0-9a-fA-F]{4} | '\\'^([\"\\/bfnrtu]|0..0x1f))* %parse_string) '"' @exit;
|
||||||
}%%
|
}%%
|
||||||
|
|
||||||
static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result)
|
static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result)
|
||||||
|
@ -790,3 +790,10 @@ void Init_parser()
|
||||||
i_iconv = rb_intern("iconv");
|
i_iconv = rb_intern("iconv");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Local variables:
|
||||||
|
* mode: c
|
||||||
|
* c-file-style: ruby
|
||||||
|
* End:
|
||||||
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue