Minor spoilers for Star Wars: The Last Jedi follow.
In addition to being Princess Leia, Carrie Fisher also worked as a script doctor in Hollywood. She would punch up and edit screenplays by adding jokes, rewriting dialogue, or whatever else was needed to increase the quality of the screenplay. Fisher was famous for her wit and it should come as no surprise she was quite good at one-liners. Before she passed away one year ago, Fisher helped Rian Johnson with the script for Star Wars: The Last Jedi. Not only did she come up with several of her character's scenes, but she also wrote some of Leia's best lines in the movie. Including the one that punctuated her reunion with Luke Skywalker.
Rian Johnson wrote and directed Star Wars: The Last Jedi, but when you've got unrestricted access to Carrie Fisher, you're going to use her. Fisher helped add more humor to the sequel because Johnson wanted to create a movie that was "unafraid to have fun." Of the many lines that she contributed, one just has Fisher written all over it. In the scene where Luke Skywalker and Leia are finally reunited, Luke remarks that she looks different. Leia responds that she changed her hairstyle, and according to Johnson, that line was all Fisher.
Speaking with People, Rian Johnson revealed some of the specifics behind Carrie Fisher's contributions to The Last Jedi's script. The character of Leia is famous for her signature hairstyles, so, of course, it was Fisher who wrote Leia's joke during her reunion with Luke. It just has that distinct Fisher feel to it. Johnson worked with Fisher to increase the humor in the movie, and after an hour of working together, he had pages of notes and one-liners she had pitched.
Another significant moment that Fisher wrote was her final scene with Laura Dern's Vice Admiral Holdo. Holdo is staying behind on The Resistance's main ship to cover their escape plan from The First Order. The two women begin to say "May the Force be with you" at the same time, and Leia says (brilliantly), "You go, I've said it enough." It's another example of classic Fisher, who definitely said it enough in her lifetime, and it takes on a bit of a sad feeling under a meta context.
Some fans have been complaining about the humor in Star Wars: The Last Jedi, but maybe they'll cool their jets a bit when they learn Carrie Fisher was responsible for a lot of it. You can listen to all these jokes and more in The Last Jedi, which is in theaters right now earning all the money despite being divisive amongst fans. The new year promises to have lots of big movies, so be sure to hit up our 2018 movie release guide to learn about them all.