mirror of
https://github.com/go-gitea/gitea
synced 2025-12-05 12:28:26 +00:00
Update CodeMirror to version 5.49.0 (#8381)
* Update CodeMirror to version 5.49.0 * Update CodeMirror versions in librejs and VERSIONS
This commit is contained in:
committed by
Lauris BH
parent
6fa14ac3c8
commit
1e9b330525
@@ -14,7 +14,7 @@
|
||||
</style>
|
||||
|
||||
<div id=nav>
|
||||
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
||||
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
||||
|
||||
<ul>
|
||||
<li><a href="../../index.html">Home</a>
|
||||
@@ -48,8 +48,6 @@ puts "Listening on http://0.0.0.0:8080"
|
||||
server.listen
|
||||
|
||||
module Foo
|
||||
def initialize(@foo); end
|
||||
|
||||
abstract def abstract_method : String
|
||||
|
||||
@[AlwaysInline]
|
||||
@@ -58,7 +56,8 @@ module Foo
|
||||
end
|
||||
|
||||
struct Foo
|
||||
def initialize(@foo); end
|
||||
def initialize(@foo : ::Foo)
|
||||
end
|
||||
|
||||
def hello_world
|
||||
@foo.abstract_method
|
||||
@@ -71,8 +70,7 @@ class Bar
|
||||
|
||||
@@foobar = 12345
|
||||
|
||||
def initialize(@bar)
|
||||
super(@bar.not_nil! + 100)
|
||||
def initialize(@bar : Int32)
|
||||
end
|
||||
|
||||
macro alias_method(name, method)
|
||||
@@ -87,11 +85,10 @@ class Bar
|
||||
|
||||
alias_method abstract_method, a_method
|
||||
|
||||
macro def show_instance_vars : Nil
|
||||
def show_instance_vars : Nil
|
||||
{% for var in @type.instance_vars %}
|
||||
puts "@{{ var }} = #{ @{{ var }} }"
|
||||
{% end %}
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
@@ -101,9 +98,9 @@ lib LibC
|
||||
fun c_puts = "puts"(str : Char*) : Int
|
||||
end
|
||||
|
||||
$baz = Baz.new(100)
|
||||
$baz.show_instance_vars
|
||||
$baz.with_foofoo do
|
||||
baz = Baz.new(100)
|
||||
baz.show_instance_vars
|
||||
baz.with_foofoo do
|
||||
LibC.c_puts hello_world
|
||||
end
|
||||
</textarea></form>
|
||||
|
||||
Reference in New Issue
Block a user