Skip to content

Commit 1e567f2

Browse files
committed
colorização sintática
1 parent bf51579 commit 1e567f2

File tree

4 files changed

+81
-3
lines changed

4 files changed

+81
-3
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.5
1+
3.3.9

Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
ruby '3.3.9'
6+
7+
gem 'asciidoctor', '2.0.23'
8+
gem 'asciidoctor-pdf', '2.3.19'
9+
gem 'rouge', '4.6.0'

Gemfile.lock

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
Ascii85 (2.0.1)
5+
addressable (2.8.7)
6+
public_suffix (>= 2.0.2, < 7.0)
7+
afm (1.0.0)
8+
asciidoctor (2.0.23)
9+
asciidoctor-pdf (2.3.19)
10+
asciidoctor (~> 2.0)
11+
concurrent-ruby (~> 1.1)
12+
matrix (~> 0.4)
13+
prawn (~> 2.4.0)
14+
prawn-icon (~> 3.0.0)
15+
prawn-svg (~> 0.34.0)
16+
prawn-table (~> 0.2.0)
17+
prawn-templates (~> 0.1.0)
18+
treetop (~> 1.6.0)
19+
ttfunk (~> 1.7.0)
20+
concurrent-ruby (1.3.5)
21+
css_parser (1.21.1)
22+
addressable
23+
hashery (2.1.2)
24+
matrix (0.4.3)
25+
pdf-core (0.9.0)
26+
pdf-reader (2.15.0)
27+
Ascii85 (>= 1.0, < 3.0, != 2.0.0)
28+
afm (>= 0.2.1, < 2)
29+
hashery (~> 2.0)
30+
ruby-rc4
31+
ttfunk
32+
polyglot (0.3.5)
33+
prawn (2.4.0)
34+
pdf-core (~> 0.9.0)
35+
ttfunk (~> 1.7)
36+
prawn-icon (3.0.0)
37+
prawn (>= 1.1.0, < 3.0.0)
38+
prawn-svg (0.34.2)
39+
css_parser (~> 1.6)
40+
matrix (~> 0.4.2)
41+
prawn (>= 0.11.1, < 3)
42+
rexml (~> 3.2)
43+
prawn-table (0.2.2)
44+
prawn (>= 1.3.0, < 3.0.0)
45+
prawn-templates (0.1.2)
46+
pdf-reader (~> 2.0)
47+
prawn (~> 2.2)
48+
public_suffix (6.0.2)
49+
rexml (3.4.2)
50+
rouge (4.6.0)
51+
ruby-rc4 (0.1.5)
52+
treetop (1.6.14)
53+
polyglot (~> 0.3)
54+
ttfunk (1.7.0)
55+
56+
PLATFORMS
57+
ruby
58+
x86_64-darwin-24
59+
60+
DEPENDENCIES
61+
asciidoctor (= 2.0.23)
62+
asciidoctor-pdf (= 2.3.19)
63+
rouge (= 4.6.0)
64+
65+
RUBY VERSION
66+
ruby 3.3.9p170
67+
68+
BUNDLED WITH
69+
2.5.22

vol1/cap01.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ Podemos((("&#x002A; (star) operator")))((("multiplication, scalar")))((("star (&
427427
também implementar o operador `*`, para realizar multiplicação escalar
428428
(isto é, multiplicar um vetor por um número para obter um novo vetor de mesma direção e magnitude multiplicada):
429429

430-
[source, pycon]
430+
[source, python]
431431
----
432432
>>> v * 3
433433
Vector(9, 12)
@@ -443,7 +443,7 @@ id="repr01")))((("&#x005F;&#x005F;mul&#x005F;&#x005F;")))((("&#x005F;&#x005F;add
443443
[[ex_vector2d]]
444444
.Uma classe simples para representar um vetor 2D.
445445
====
446-
[source, python3]
446+
[source, python]
447447
----
448448
include::../code/01-data-model/vector2d_pt.py[]
449449
----

0 commit comments

Comments
 (0)