Skip to content

Commit b337fd3

Browse files
committed
Correct highlighting for list of symbols to 'Ruby'
1 parent 119a199 commit b337fd3

File tree

12 files changed

+38
-24
lines changed
  • bg/documentation/ruby-from-other-languages
  • de/documentation/ruby-from-other-languages
  • en/documentation/ruby-from-other-languages
  • es/documentation/ruby-from-other-languages
  • fr/documentation/ruby-from-other-languages
  • id/documentation/ruby-from-other-languages
  • it/documentation/ruby-from-other-languages
  • pl/dokumentacja/ruby-a-inne-jezyki-programowania
  • pt/documentacao/ruby-a-partir-de-outras-linguagens
  • tr/documentation/ruby-from-other-languages
  • zh_TW/documentation/ruby-from-other-languages
  • zh_cn/documentation/ruby-from-other-languages

12 files changed

+38
-24
lines changed

bg/documentation/ruby-from-other-languages/index.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,11 @@ end
278278

279279
</notextile>
280280

281-
Оператоите, които следват не са методи и поради това не могат да бъдат предефинирани: <notextile markdown="1"> =, .., ..., !, not, &&, and, ||, or, !=, !~, ::
282-
{: .code}
281+
Оператоите, които следват не са методи и поради това не могат да бъдат предефинирани: <notextile markdown="1">
282+
283+
{% highlight ruby %}
284+
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
285+
{% endhighlight %}
283286

284287
</notextile>
285288

de/documentation/ruby-from-other-languages/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,9 @@ benutzen.
444444
Die folgenden Operatoren sind *kein* syntaktischer Zucker. Sie sind
445445
keine Methoden, und können nicht umdefiniert werden:
446446

447-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
448-
{: .code}
447+
{% highlight ruby %}
448+
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
449+
{% endhighlight %}
449450

450451
Zudem sind `+=`, `*=` usw. nur Abkürzungen für `foo = foo + bar` usw.
451452
und können deshalb auch nicht überschrieben werden.

en/documentation/ruby-from-other-languages/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,9 @@ You don’t need C++’s `operator+`, etc.
396396
You can even have array-style access if you define the `[]` and `[]=` methods. To define the unary + and – (think +1 and -2), you must define the `+@` and `-@` methods, respectively. The operators below are **not** syntactic sugar, though. They are not
397397
methods, and cannot be redefined:
398398

399-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
400-
{: .code}
399+
{% highlight ruby %}
400+
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
401+
{% endhighlight %}
401402

402403
In addition, +=, \*= etc. are just abbrevations for `var = var + other_var`, `var = var * other_var`, etc. and therefore cannot be redefined. ## Finding Out More
403404

es/documentation/ruby-from-other-languages/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,9 @@ definir los métodos `+@` and `-@` respectivamente.
435435
Sin embargo, los siguientes operadores **no** son simplificaciones
436436
sintácticas. No son métodos, y no pueden ser redefinidos:
437437

438-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
439-
{: .code}
438+
{% highlight ruby %}
439+
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
440+
{% endhighlight %}
440441

441442
Además, +=, \*= etc. sólo son abreviaciones para `var = var + otra_var`, `var = var * otra_var`, etc. y por ende no pueden ser redefinidos. ## Para saber más
442443

fr/documentation/ruby-from-other-languages/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,9 @@ méthodes `[]` et `[]=`. Pour définir les signes + et -, comme pour +1 et
436436
Les opérateurs ci-dessous ne sont pas des méthodes, et ne peuvent pas
437437
être modifiés :
438438

439-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
440-
{: .code}
439+
{% highlight ruby %}
440+
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
441+
{% endhighlight %}
441442

442443
Par ailleurs, `+=`, `*=`, etc. ne sont que des raccourcis pour `var =
443444
var + autre_var`, `var = var * autre_var`, etc. et ne peuvent être

id/documentation/ruby-from-other-languages/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,9 @@ Tetapi operator-operator dibawah ini bukan syntactic sugar.
461461
Operator-operator dibawah ini bukan metode dan tidak dapat didefinisikan
462462
ulang:
463463

464-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
465-
{: .code}
464+
{% highlight ruby %}
465+
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
466+
{% endhighlight %}
466467

467468
Tambahan, +=, \*= dan lain sebagainya hanyalah singkatan untuk `var =
468469
var + var_lain`, `var = var * var_lain`, dan seterusnya tidak dapat

it/documentation/ruby-from-other-languages/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,9 @@ definire, rispettivamente, i metodi `+@` and `-@`.
424424
I seguenti operatori però **non** sono zucchero sintattico: non sono
425425
metodi e non possono essere ridefiniti:
426426

427-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
428-
{: .code}
427+
{% highlight ruby %}
428+
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
429+
{% endhighlight %}
429430

430431
Inoltre, +=, \*= ecc. sono solo abbreviazioni di:
431432

pl/dokumentacja/ruby-a-inne-jezyki-programowania/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,9 @@ Nie potrzebujesz operatora z C++’s `operator+`, etc.
404404
Poniższe operatory jednak **nie są cukrem syntaktycznym**. Nie są
405405
metodami dlatego nie można ich przedefiniować.
406406

407-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
408-
{: .code}
407+
{% highlight ruby %}
408+
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
409+
{% endhighlight %}
409410

410411
Dodatkowo, +=, \*= etc. są po prostu skrótami dla `var = var + other_var`, `var = var * other_var`, etc. dlatego też nie można ich przedefiniować. ## Więcej
411412

pt/documentacao/ruby-a-partir-de-outras-linguagens/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,9 @@ Pode ainda ter um acesso no estilo de um array se definir os métodos
435435
Os operadores abaixo não são, no entanto, açúcar sintáctico.Não são
436436
métodos, e não podem ser redifinidos:
437437

438-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
439-
{: .code}
438+
{% highlight ruby %}
439+
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
440+
{% endhighlight %}
440441

441442
Como +=, \*= etc. são somente abreviações para `var = var + outra_var`, `var = var * outra_var`, etc. não podem ser redefinidos. ## Mais informação
442443

tr/documentation/ruby-from-other-languages/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,9 @@ tanımlamalısınız.
398398
Aşağıdaki operatörler bu şekilde değerlendirilmezler. Bunlar metod
399399
değildir ve tekrar tanımlanamazlar:
400400

401-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
402-
{: .code}
401+
{% highlight ruby %}
402+
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
403+
{% endhighlight %}
403404

404405
Ek olarak, +=, \*= vb. şunların kısaltmasıdır : `var = var + other_var`, `var = var * other_var`, vb. ve bu yüzden tekrar tanımlanamazlar. ## Daha Fazla Bilgi
405406

zh_TW/documentation/ruby-from-other-languages/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,9 @@ end
359359

360360
以下的操作符則**不是**語法包裝。它們不是方法,不能被覆寫定義:
361361

362-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
363-
{: .code}
362+
{% highlight ruby %}
363+
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
364+
{% endhighlight %}
364365

365366
此外 +=, \*= 等只是 `var = var + other_var``var = var * other_var`
366367
等的縮寫,因此也不能被覆寫定義。

zh_cn/documentation/ruby-from-other-languages/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,9 @@ You don’t need C++’s `operator+`, etc.
354354
You can even have array-style access if you define the `[]` and `[]=` methods. To define the unary + and – (think +1 and -2), you must define the `+@` and `-@` methods, respectively. The operators below are **not** syntactic sugar, though. They are not
355355
methods, and cannot be redefined:
356356

357-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
358-
{: .code}
357+
{% highlight ruby %}
358+
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
359+
{% endhighlight %}
359360

360361
In addition, +=, \*= etc. are just abbrevations for `var = var + other_var`, `var = var * other_var`, etc. and therefore cannot be redefined. ## Finding Out More
361362

0 commit comments

Comments
 (0)